prevent crashesh when sound is enable but no working soundcard is avalible
This commit is contained in:
parent
b50a86f560
commit
5c1a85e264
|
@ -1391,6 +1391,7 @@ void SPU_Emulate_user(bool mix)
|
||||||
|
|
||||||
// Check to see how much free space there is
|
// Check to see how much free space there is
|
||||||
// If there is some, fill up the buffer
|
// If there is some, fill up the buffer
|
||||||
|
if(!SNDCore) return;
|
||||||
audiosize = SNDCore->GetAudioSpace();
|
audiosize = SNDCore->GetAudioSpace();
|
||||||
|
|
||||||
if (audiosize > 0)
|
if (audiosize > 0)
|
||||||
|
|
Loading…
Reference in New Issue