Sound Lib
C/C++Windowsゲーム用音声再生ライブラリ
|
IXAudio2VoiceCallback実装クラス [詳解]
#include <VoiceCallback.h>
公開メンバ関数 | |
VoiceCallback (IVoiceCallbackDelegate *pDelegate) | |
コンストラクタ [詳解] | |
VoiceCallback (VoiceCallback &&obj)=default | |
ムーブコンストラクタ [詳解] | |
~VoiceCallback ()=default | |
デストラクタ [詳解] | |
VoiceCallback & | operator= (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]
|
explicit |
コンストラクタ
- 引数
-
pDelegate コールバック関数を定義したオブジェクト
◆ VoiceCallback() [2/2]
|
default |
ムーブコンストラクタ
- 引数
-
obj ムーブ対象オブジェクト
◆ ~VoiceCallback()
|
default |
デストラクタ
関数詳解
◆ OnBufferEnd()
void STDMETHODCALLTYPE SoundLib::VoiceCallback::OnBufferEnd | ( | void * | pBufferContext | ) |
Called when this voice has just finished processing a buffer.
- 引数
-
pBufferContext Context 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()
|
inline |
Called when this voice is about to start processing a new buffer.
- 引数
-
pBufferContext Context 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.
- 引数
-
pBufferContext Context 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.
- 引数
-
pBufferContext reports which buffer was being processed when the error occurred Error its HRESULT code
The voice may have to be destroyed and re-created to recover from the error.
◆ OnVoiceProcessingPassEnd()
|
inline |
Called just after this voice's processing pass ends.
◆ OnVoiceProcessingPassStart()
|
inline |
Called just before this voice's processing pass begins.
- 引数
-
SamplesRequired The number of bytes that must be submitted immediately to avoid starvation.
◆ operator=()
|
default |
ムーブ代入演算子のオーバーロード
- 引数
-
obj ムーブ対象オブジェクト
- 戻り値
- ムーブ後のオブジェクト
このクラス詳解は次のファイルから抽出されました:
- SoundLib/VoiceCallback.h
- SoundLib/VoiceCallback.cpp
構築: 1.8.14