Sound Lib: SoundLib::VoiceCallback クラス

Sound Lib

Sound Lib
C/C++Windowsゲーム用音声再生ライブラリ
SoundLib::VoiceCallback クラス

IXAudio2VoiceCallback実装クラス [詳解]

#include <VoiceCallback.h>

SoundLib::VoiceCallback の継承関係図
SoundLib::VoiceCallback 連携図

公開メンバ関数

 VoiceCallback (IVoiceCallbackDelegate *pDelegate)
 コンストラクタ [詳解]
 
 VoiceCallback (VoiceCallback &&obj)=default
 ムーブコンストラクタ [詳解]
 
 ~VoiceCallback ()=default
 デストラクタ [詳解]
 
VoiceCallbackoperator= (VoiceCallback &&obj)=default
 ムーブ代入演算子のオーバーロード [詳解]
 
void STDMETHODCALLTYPE OnStreamEnd ()
 Called when this voice has just finished playing a buffer stream (as marked with the XAUDIO2_END_OF_STREAM flag on the last buffer). [詳解]
 
void STDMETHODCALLTYPE OnVoiceProcessingPassEnd ()
 Called just after this voice's processing pass ends. [詳解]
 
void STDMETHODCALLTYPE OnVoiceProcessingPassStart (UINT32 SamplesRequired)
 Called just before this voice's processing pass begins. [詳解]
 
void STDMETHODCALLTYPE OnBufferEnd (void *pBufferContext)
 Called when this voice has just finished processing a buffer. [詳解]
 
void STDMETHODCALLTYPE OnBufferStart (void *pBufferContext)
 Called when this voice is about to start processing a new buffer. [詳解]
 
void STDMETHODCALLTYPE OnLoopEnd (void *pBufferContext)
 Called when this voice has just reached the end position of a loop. [詳解]
 
void STDMETHODCALLTYPE OnVoiceError (void *pBufferContext, HRESULT Error)
 Called in the event of a critical error during voice processing, such as a failing xAPO or an error from the hardware XMA decoder. [詳解]
 

詳解

IXAudio2VoiceCallback実装クラス

構築子と解体子

◆ VoiceCallback() [1/2]

SoundLib::VoiceCallback::VoiceCallback ( IVoiceCallbackDelegate pDelegate)
explicit

コンストラクタ

引数
pDelegateコールバック関数を定義したオブジェクト

◆ VoiceCallback() [2/2]

SoundLib::VoiceCallback::VoiceCallback ( VoiceCallback &&  obj)
default

ムーブコンストラクタ

引数
objムーブ対象オブジェクト

◆ ~VoiceCallback()

SoundLib::VoiceCallback::~VoiceCallback ( )
default

デストラクタ

関数詳解

◆ OnBufferEnd()

void STDMETHODCALLTYPE SoundLib::VoiceCallback::OnBufferEnd ( void *  pBufferContext)

Called when this voice has just finished processing a buffer.

引数
pBufferContextContext pointer assigned to the pContext member of the XAUDIO2_BUFFER structure when the buffer was submitted.

The buffer can now be reused or destroyed.

◆ OnBufferStart()

void STDMETHODCALLTYPE SoundLib::VoiceCallback::OnBufferStart ( void *  pBufferContext)
inline

Called when this voice is about to start processing a new buffer.

引数
pBufferContextContext pointer that was assigned to the pContext member of the XAUDIO2_BUFFER structure when the buffer was submitted.

◆ OnLoopEnd()

void STDMETHODCALLTYPE SoundLib::VoiceCallback::OnLoopEnd ( void *  pBufferContext)

Called when this voice has just reached the end position of a loop.

引数
pBufferContextContext pointer that was assigned to the pContext member of the XAUDIO2_BUFFER structure when the buffer was submitted.

◆ OnStreamEnd()

void STDMETHODCALLTYPE SoundLib::VoiceCallback::OnStreamEnd ( )

Called when this voice has just finished playing a buffer stream (as marked with the XAUDIO2_END_OF_STREAM flag on the last buffer).

◆ OnVoiceError()

void STDMETHODCALLTYPE SoundLib::VoiceCallback::OnVoiceError ( void *  pBufferContext,
HRESULT  Error 
)

Called in the event of a critical error during voice processing, such as a failing xAPO or an error from the hardware XMA decoder.

引数
pBufferContextreports which buffer was being processed when the error occurred
Errorits HRESULT code

The voice may have to be destroyed and re-created to recover from the error.

◆ OnVoiceProcessingPassEnd()

void STDMETHODCALLTYPE SoundLib::VoiceCallback::OnVoiceProcessingPassEnd ( )
inline

Called just after this voice's processing pass ends.

◆ OnVoiceProcessingPassStart()

void STDMETHODCALLTYPE SoundLib::VoiceCallback::OnVoiceProcessingPassStart ( UINT32  SamplesRequired)
inline

Called just before this voice's processing pass begins.

引数
SamplesRequiredThe number of bytes that must be submitted immediately to avoid starvation.

◆ operator=()

VoiceCallback& SoundLib::VoiceCallback::operator= ( VoiceCallback &&  obj)
default

ムーブ代入演算子のオーバーロード

引数
objムーブ対象オブジェクト
戻り値
ムーブ後のオブジェクト

このクラス詳解は次のファイルから抽出されました:
構築:   doxygen 1.8.14