prevent crashesh when sound is enable but no working soundcard is avalible

This commit is contained in:
dormito 2010-11-23 05:06:34 +00:00
parent b50a86f560
commit 5c1a85e264
1 changed files with 1 additions and 0 deletions

View File

@ -1391,6 +1391,7 @@ void SPU_Emulate_user(bool mix)
// Check to see how much free space there is
// If there is some, fill up the buffer
if(!SNDCore) return;
audiosize = SNDCore->GetAudioSpace();
if (audiosize > 0)