11#ifndef INCGUARD_MGL_AUDIO_H_1612343820 
   12#define INCGUARD_MGL_AUDIO_H_1612343820 
   28template <
class VoiceClass, 
class... Args>
 
   29std::weak_ptr<VoiceClass> 
LoadVoice(Args... args) 
noexcept 
   31    auto voice = STL::make_shared<VoiceClass>(args...);
 
   34        return std::weak_ptr<VoiceClass>();
 
 
   40bool UnloadVoice(VoiceKey key) 
noexcept;
 
   41void SetMasterVolume(
float volume) 
noexcept;
 
   42[[nodiscard]] 
float GetMasterVolume() noexcept;
 
   43void SetVoiceVolume(VoiceKey voiceKey, 
float volume) noexcept;
 
   44[[nodiscard]] 
float GetVoiceVolume(VoiceKey voiceKey) noexcept;
 
static Player & GetInstance() noexcept
Definition mgl_singleton.h:74
 
std::weak_ptr< VoiceClass > LoadVoice(Args... args) noexcept
ボイスの読み込み
Definition mgl_audio.h:29