mirror of https://github.com/PCSX2/pcsx2.git
SPU2: Don't initialise sound buffer if it's not open
This commit is contained in:
parent
4dc0db6ee6
commit
ef9c8ce877
|
@ -46,6 +46,8 @@ void SPU2configure()
|
||||||
|
|
||||||
configure();
|
configure();
|
||||||
|
|
||||||
|
if (IsOpened)
|
||||||
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Console.Warning("SPU2: Sound output module reset");
|
Console.Warning("SPU2: Sound output module reset");
|
||||||
|
@ -56,6 +58,7 @@ void SPU2configure()
|
||||||
fprintf(stderr, "SPU2 Error: Could not initialize device, or something.\nReason: %s", ex.what());
|
fprintf(stderr, "SPU2 Error: Could not initialize device, or something.\nReason: %s", ex.what());
|
||||||
SPU2close();
|
SPU2close();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
paused_core.AllowResume();
|
paused_core.AllowResume();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue