SPU2ghz: XAudio2 driver now initializes a 48khz output rate (was using the default of 44.1khz). This may help fix some of the XA2 crashing problems as well.

git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@267 a6443dda-0b58-4228-96e9-037be469359c
This commit is contained in:
Jake.Stine 2008-11-01 21:04:22 +00:00 committed by Gregory Hainaut
parent 62e1f5015d
commit d839f19119
2 changed files with 2 additions and 4 deletions

View File

@ -21,8 +21,6 @@
#include "regtable.h"
#define SYNC_DISTANCE 4800
void StartVoices(int core, u32 value);
void StopVoices(int core, u32 value);

View File

@ -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 );