mirror of https://github.com/PCSX2/pcsx2.git
SPU2-X:
The preferred audio output module is PortAudio, so making it the default under Windows now (it is already on Linux). It will use wasapi mode with the default sound device by default, both are configurable though. This setup gives us better latency and a higher time stretch polling frequency, resulting in better quality overall. With this we can also lower the main latency default from 150ms to now 100ms. There is no error checking for the wasapi mode selection yet, as I don't know how this should be done. Help would be appreciated (gigaherz!) :p git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5821 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
442fc846eb
commit
992a453a68
|
@ -582,7 +582,7 @@ public:
|
|||
// By default on linux use the ALSA API (+99% users) -- Gregory
|
||||
CfgReadStr( L"PORTAUDIO", L"HostApi", api, L"ALSA" );
|
||||
#else
|
||||
CfgReadStr( L"PORTAUDIO", L"HostApi", api, L"Unknown" );
|
||||
CfgReadStr( L"PORTAUDIO", L"HostApi", api, L"WASAPI" );
|
||||
#endif
|
||||
CfgReadStr( L"PORTAUDIO", L"Device", m_Device, L"default" );
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ bool postprocess_filter_enabled = 1;
|
|||
bool postprocess_filter_dealias = false;
|
||||
|
||||
// OUTPUT
|
||||
int SndOutLatencyMS = 150;
|
||||
int SndOutLatencyMS = 100;
|
||||
int SynchMode = 0; // Time Stretch, Async or Disabled
|
||||
|
||||
u32 OutputModule = 0;
|
||||
|
@ -73,7 +73,7 @@ void ReadSettings()
|
|||
if ( FinalVolume > 1.0f) FinalVolume = 1.0f;
|
||||
numSpeakers = CfgReadInt( L"OUTPUT", L"SpeakerConfiguration", 0);
|
||||
dplLevel = CfgReadInt( L"OUTPUT", L"DplDecodingLevel", 0);
|
||||
SndOutLatencyMS = CfgReadInt(L"OUTPUT",L"Latency", 150);
|
||||
SndOutLatencyMS = CfgReadInt(L"OUTPUT",L"Latency", 100);
|
||||
|
||||
if((SynchMode == 0) && (SndOutLatencyMS < LATENCY_MIN_TS)) // can't use low-latency with timestretcher atm
|
||||
SndOutLatencyMS = LATENCY_MIN_TS;
|
||||
|
@ -81,7 +81,7 @@ void ReadSettings()
|
|||
SndOutLatencyMS = LATENCY_MIN;
|
||||
|
||||
wchar_t omodid[128];
|
||||
CfgReadStr( L"OUTPUT", L"Output_Module", omodid, 127, XAudio2Out->GetIdent() );
|
||||
CfgReadStr(L"OUTPUT", L"Output_Module", omodid, 127, PortaudioOut->GetIdent());
|
||||
|
||||
// find the driver index of this module:
|
||||
OutputModule = FindOutputModuleById( omodid );
|
||||
|
|
Loading…
Reference in New Issue