X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fsound.cpp;h=4cab23ec0aad0ec7a353e97869cf6ed53d1e5179;hb=c0001155bc0909da61f6c849c0be9b16e9b7f4b6;hp=0d794c997ede1d06bf42c9efd866375a2f86a9da;hpb=cf5ff906a67338f7b87d8285a00d9e2b82ad033e;p=apple2 diff --git a/src/sound.cpp b/src/sound.cpp index 0d794c9..4cab23e 100755 --- a/src/sound.cpp +++ b/src/sound.cpp @@ -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 // @@ -162,7 +176,7 @@ static void SDLSoundCallback(void * /*userdata*/, Uint8 * buffer8, int length8) // Let's try using a mutex for shared resource consumption... //Actually, I think Lock/UnlockAudio() does this already... -WriteLog("SDLSoundCallback: soundBufferPos = %i\n", soundBufferPos); +//WriteLog("SDLSoundCallback: soundBufferPos = %i\n", soundBufferPos); SDL_mutexP(mutex2); // Recast this as a 16-bit type...