mirror of https://github.com/PCSX2/pcsx2.git
SPU2-X:
WinXP should be exempted from Portaudio as the default for now. It has a large latency with DirectSound compared to direct use and XA2 isn't available at all. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5823 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
01daa0b6fd
commit
72f7b70f7b
|
@ -61,6 +61,20 @@ int numSpeakers = 0;
|
||||||
int dplLevel = 0;
|
int dplLevel = 0;
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
BOOL IsVistaOrGreater2() // workaround for XP toolset missing VersionHelpers.h
|
||||||
|
{
|
||||||
|
OSVERSIONINFOEX osvi;
|
||||||
|
DWORDLONG dwlConditionMask = 0;
|
||||||
|
int op = VER_GREATER_EQUAL;
|
||||||
|
|
||||||
|
ZeroMemory(&osvi, sizeof(OSVERSIONINFOEX));
|
||||||
|
osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX);
|
||||||
|
osvi.dwMajorVersion = 6;
|
||||||
|
|
||||||
|
VER_SET_CONDITION(dwlConditionMask, VER_MAJORVERSION, op);
|
||||||
|
|
||||||
|
return VerifyVersionInfo(&osvi, VER_MAJORVERSION, dwlConditionMask);
|
||||||
|
}
|
||||||
|
|
||||||
void ReadSettings()
|
void ReadSettings()
|
||||||
{
|
{
|
||||||
|
@ -81,7 +95,13 @@ void ReadSettings()
|
||||||
SndOutLatencyMS = LATENCY_MIN;
|
SndOutLatencyMS = LATENCY_MIN;
|
||||||
|
|
||||||
wchar_t omodid[128];
|
wchar_t omodid[128];
|
||||||
CfgReadStr(L"OUTPUT", L"Output_Module", omodid, 127, PortaudioOut->GetIdent());
|
|
||||||
|
if ( IsVistaOrGreater2() ) { // XA2 for WinXP, morder modern gets Portaudio
|
||||||
|
CfgReadStr(L"OUTPUT", L"Output_Module", omodid, 127, PortaudioOut->GetIdent());
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
CfgReadStr(L"OUTPUT", L"Output_Module", omodid, 127, XAudio2Out->GetIdent());
|
||||||
|
}
|
||||||
|
|
||||||
// find the driver index of this module:
|
// find the driver index of this module:
|
||||||
OutputModule = FindOutputModuleById( omodid );
|
OutputModule = FindOutputModuleById( omodid );
|
||||||
|
|
Loading…
Reference in New Issue