mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-14 10:10:12 +01:00
SPU2: Don't initialise sound buffer if it's not open
This commit is contained in:
1 parent
4dc0db6ee6
commit
ef9c8ce877
1 file changed
+11
-8
+11
-8
@@ -46,15 +46,18 @@ void SPU2configure()
|
||||
|
||||
configure();
|
||||
|
||||
try
|
||||
if (IsOpened)
|
||||
{
|
||||
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();
|
||||
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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user