I’m using 1.3svn.
When I go into SDL_PauseAudio I don’t get silence – I seem
to play the last buffer over and over… (but I don’t go into the
callback).
When I enter a “pause” mode I assume I can do
SDL_PauseAudio(1)
until I want to leave pause mode.
What worked was doing a
if(pause_mode)
memset(buffer, 0, len)
else /* normal processing */
in the audio callback
marty
Yes, if audio is paused you should expect silence.
Bob PendletonOn Tue, Jun 2, 2009 at 1:06 AM, Marty Leisner wrote:
I’m using 1.3svn.
When I go into SDL_PauseAudio I don’t get silence – I seem
to play the last buffer over and over… (but I don’t go into the
callback).
When I enter a “pause” mode I assume I can do
SDL_PauseAudio(1)
until I want to leave pause mode.
What worked was doing a
? ? ? ?if(pause_mode)
? ? ? ? ? ? ? ?memset(buffer, 0, len)
? ? ? ?else ? ?/* normal processing */
in the audio callback
marty
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
–
±----------------------------------------------------------