mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
62e1f5015d
commit
d839f19119
|
@ -21,8 +21,6 @@
|
|||
|
||||
#include "regtable.h"
|
||||
|
||||
#define SYNC_DISTANCE 4800
|
||||
|
||||
void StartVoices(int core, u32 value);
|
||||
void StopVoices(int core, u32 value);
|
||||
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue