]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/dac.cpp
Added appropriate audio thread pausing to the GUI layer.
[virtualjaguar] / src / dac.cpp
index 6f9b5a8e57b01d393ec005fae3b2697644311885..6a60906a66b3f2c495896e9dbc69f0d761d18db3 100644 (file)
@@ -97,9 +97,10 @@ void DACInit(void)
 {
        SDLSoundInitialized = false;
 
-       if (!vjs.audioEnabled)
+//     if (!vjs.audioEnabled)
+       if (!vjs.DSPEnabled)
        {
-               WriteLog("DAC: Host audio playback disabled.\n");
+               WriteLog("DAC: DSP/host audio playback disabled.\n");
                return;
        }
 
@@ -137,6 +138,15 @@ void DACReset(void)
 }
 
 
+//
+// Pause/unpause the SDL audio thread
+//
+void DACPauseAudioThread(bool state/*= true*/)
+{
+               SDL_PauseAudio(state);
+}
+
+
 //
 // Close down the SDL sound subsystem
 //