diff --git a/plugins/spu2ghz/spu2.cpp b/plugins/spu2ghz/spu2.cpp index 56a509748e..cd582bfdef 100644 --- a/plugins/spu2ghz/spu2.cpp +++ b/plugins/spu2ghz/spu2.cpp @@ -21,8 +21,6 @@ #include "regtable.h" -#define SYNC_DISTANCE 4800 - void StartVoices(int core, u32 value); void StopVoices(int core, u32 value); diff --git a/plugins/spu2ghz/xaudio2out.cpp b/plugins/spu2ghz/xaudio2out.cpp index 730bf218a3..7b69863b19 100644 --- a/plugins/spu2ghz/xaudio2out.cpp +++ b/plugins/spu2ghz/xaudio2out.cpp @@ -103,7 +103,7 @@ public: // // Create a mastering voice // - if ( FAILED(hr = pXAudio2->CreateMasteringVoice( &pMasteringVoice ) ) ) + if ( FAILED(hr = pXAudio2->CreateMasteringVoice( &pMasteringVoice, 0, SampleRate ) ) ) { SysMessage( "Failed creating mastering voice: %#X\n", hr ); SAFE_RELEASE( pXAudio2 ); @@ -130,7 +130,7 @@ public: // Create an XAudio2 voice to stream this wave // if( FAILED(hr = pXAudio2->CreateSourceVoice( &pSourceVoice, &wfx, - XAUDIO2_VOICE_NOPITCH, 1.0f, &voiceContext ) ) ) + XAUDIO2_VOICE_NOSRC, 1.0f, &voiceContext ) ) ) { SysMessage( "Error %#X creating source voice\n", hr ); SAFE_RELEASE( pXAudio2 );