mirror of https://github.com/PCSX2/pcsx2.git
SPU2: Restore functionality to switch modules on the fly without being tied to GS window status.
This commit is contained in:
parent
9d9e8a9217
commit
55d0d40697
|
@ -41,7 +41,21 @@ u32 lClocks = 0;
|
||||||
void SPU2configure()
|
void SPU2configure()
|
||||||
{
|
{
|
||||||
ScopedCoreThreadPause paused_core;
|
ScopedCoreThreadPause paused_core;
|
||||||
|
|
||||||
|
SndBuffer::Cleanup();
|
||||||
|
|
||||||
configure();
|
configure();
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Console.Warning("SPU2: Sound output module reset");
|
||||||
|
SndBuffer::Init();
|
||||||
|
}
|
||||||
|
catch (std::exception& ex)
|
||||||
|
{
|
||||||
|
fprintf(stderr, "SPU2 Error: Could not initialize device, or something.\nReason: %s", ex.what());
|
||||||
|
SPU2close();
|
||||||
|
}
|
||||||
paused_core.AllowResume();
|
paused_core.AllowResume();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue