]> Shamusworld >> Repos - apple2/blobdiff - src/sound.cpp
Fixed misc. bugs preventing certain games from working, added pause mode.
[apple2] / src / sound.cpp
index 22a027d2cc46c8834fb2184f4316155d619c0c05..4cab23ec0aad0ec7a353e97869cf6ed53d1e5179 100755 (executable)
@@ -147,6 +147,20 @@ void SoundDone(void)
 }
 
 
+void SoundPause(void)
+{
+       if (soundInitialized)
+               SDL_PauseAudioDevice(device, 1);
+}
+
+
+void SoundResume(void)
+{
+       if (soundInitialized)
+               SDL_PauseAudioDevice(device, 0);
+}
+
+
 //
 // Sound card callback handler
 //