[SDL] Mute for SDL_Mixer
Justin Coleman
jmcoleman at gmail.com
Mon Apr 28 18:51:24 PDT 2008
Save the volume(s), set it to zero while muted, then set back to
previous value(s) when unmuted?
-Justin
On Mon, Apr 28, 2008 at 8:22 PM, Gabriel Gambetta <mystml at adinet.com.uy> wrote:
> I want to implement Mute functionality in my framework. I haven't found
> anything that does it in SDL_Mixer.
>
> - Setting the music and channels volume to 0 has the problem that I lose the
> previous volume of the channels and music when I want to unmute.
>
> - Mix_PauseChannel and Mix_PauseMusic don't have the volume problem, but its
> effect is similar to a PAUSE button, not to a MUTE button.
>
> What's the canonical/easiest way to implement mute in SDL_Mixer?
>
> --Gabriel
>
>
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
>
More information about the SDL
mailing list