This commit is contained in:
gibbed 2014-01-13 00:25:10 -08:00
parent 74d26b2814
commit d30f4b25b9
1 changed files with 0 additions and 1 deletions

View File

@ -93,7 +93,6 @@ void XAudio2AudioSystem::Initialize() {
SPEAKER_FRONT_LEFT | SPEAKER_FRONT_CENTER | SPEAKER_FRONT_RIGHT |
SPEAKER_LOW_FREQUENCY |
SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT;
hr = audio_->CreateSourceVoice(&pcm_voice_, (WAVEFORMATEX*)&waveformat);
hr = audio_->CreateSourceVoice(
&pcm_voice_, &waveformat, 0, XAUDIO2_DEFAULT_FREQ_RATIO,
voice_callback_);