11#ifndef INCGUARD_MGL_AUDIO_PLAYER_H_1610736803 
   12#define INCGUARD_MGL_AUDIO_PLAYER_H_1610736803 
   27class InitializerDelegate;
 
   53        return _renderer->GetOutputFormat();
 
 
   64        _masterVolume = volume;
 
 
   82    static void Rendering(
void **outData, 
size_t outDataCount, 
const DataFormat &dataFormat, 
size_t frameCount) 
noexcept;
 
   84    bool _isInitialized{
false};
 
   85    VoiceStorage _voiceStorage;
 
   89    std::atomic<float> _masterVolume{1.0f};
 
   91    SampleTypeConvert::WriteDataFunction _writeData{
nullptr};
 
   93    STL::unique_ptr<Renderer> _renderer;
 
 
オーディオプレイヤークラス
Definition mgl_audio_player.h:34
 
float GetVoiceVolume(VoiceKey voiceKey) noexcept
ボイスのボリュームを設定
Definition mgl_audio_player.cc:203
 
void SetVoiceVolume(VoiceKey voiceKey, float volume) noexcept
ボイスのボリュームを設定
Definition mgl_audio_player.cc:187
 
SharedSourceInstance MakeSourceInstance(VoiceKey key, bool isAutoRemove) noexcept
ソースインスタンスを生成
Definition mgl_audio_player.cc:148
 
float GetMasterVolume() const noexcept
マスター音量の取得
Definition mgl_audio_player.h:73
 
void SetMasterVolume(float volume) noexcept
マスター音量の設定
Definition mgl_audio_player.h:62
 
const DataFormat & GetOutputFormat() const noexcept
出力フォーマットの取得
Definition mgl_audio_player.h:51
 
bool Load(const SharedVoice &voice) noexcept
ボイスの読み込み
Definition mgl_audio_player.cc:87
 
bool Unload(VoiceKey key) noexcept
ボイスを解放
Definition mgl_audio_player.cc:128
 
bool Initialize(STL::unique_ptr< Renderer > &renderer, InitializeMode initMode) noexcept
初期化処理
Definition mgl_audio_player.cc:38
 
static STL::unique_ptr< Player > & GetInstanceRef() noexcept
インスタンスの取得
Definition mgl_audio_player.cc:23
 
シングルトンテンプレート(共有ライブラリ用)
Definition mgl_singleton.h:44
 
VoiceKey
ボイスキー
Definition mgl_audio_defs.h:22
 
InitializeMode
初期化モード
Definition mgl_audio_defs.h:42
 
std::shared_ptr< SourceInstance > SharedSourceInstance
共有ソースインスタンス
Definition mgl_audio_source_instance.h:187
 
std::shared_ptr< Voice > SharedVoice
共有ボイスの型
Definition mgl_audio_voice.h:251
 
std::list< T, Allocator< T > > list
std::listの代替
Definition mgl_stl_containers.h:47
 
std::unique_ptr< T, Deleter > unique_ptr
MGLのアロケータを利用するユニークポインタ
Definition mgl_stl_memory.h:256