Sigh.
This commit is contained in:
@@ -26,7 +26,9 @@ public:
|
||||
void OnStreamEnd() {}
|
||||
void OnVoiceProcessingPassEnd() {}
|
||||
void OnVoiceProcessingPassStart(uint32_t samples_required) {}
|
||||
void OnBufferEnd(void* context);
|
||||
void OnBufferEnd(void* context) {
|
||||
SetEvent(wait_handle_);
|
||||
}
|
||||
void OnBufferStart(void* context) {}
|
||||
void OnLoopEnd(void* context) {}
|
||||
void OnVoiceError(void* context, HRESULT result) {}
|
||||
@@ -35,10 +37,6 @@ private:
|
||||
HANDLE wait_handle_;
|
||||
};
|
||||
|
||||
void XAudio2AudioDriver::VoiceCallback::OnBufferEnd(void* context) {
|
||||
SetEvent(wait_handle_);
|
||||
}
|
||||
|
||||
XAudio2AudioDriver::XAudio2AudioDriver(Emulator* emulator, HANDLE wait) :
|
||||
audio_(0), mastering_voice_(0), pcm_voice_(0),
|
||||
wait_handle_(wait), voice_callback_(0),
|
||||
|
||||
Reference in New Issue
Block a user