From 5c1a85e2643bfa68ca19bfdc39381b2870339995 Mon Sep 17 00:00:00 2001 From: dormito Date: Tue, 23 Nov 2010 05:06:34 +0000 Subject: [PATCH] prevent crashesh when sound is enable but no working soundcard is avalible --- desmume/src/SPU.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/desmume/src/SPU.cpp b/desmume/src/SPU.cpp index 52ec4d920..143e0ca3a 100644 --- a/desmume/src/SPU.cpp +++ b/desmume/src/SPU.cpp @@ -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)