# HG changeset patch # User nenolod # Date 1165629174 28800 # Node ID 5d3f4b15619750d0a252f4f95507142cdaee3e11 # Parent 17311560f45fc4de855cacad0f5b154472082e12 [svn] - mute the soundcard if volume is 0. diff -r 17311560f45f -r 5d3f4b156197 ChangeLog --- a/ChangeLog Fri Dec 08 03:27:31 2006 -0800 +++ b/ChangeLog Fri Dec 08 17:52:54 2006 -0800 @@ -1,3 +1,13 @@ +2006-12-08 11:27:31 +0000 William Pitcock + revision [748] + - port from fmemopen() to vfs_buffer_new_from_string(). + + trunk/src/paranormal/libcalc/parser.c | 1094 ++++++++++++---------------------- + trunk/src/paranormal/libcalc/parser.h | 4 + trunk/src/paranormal/libcalc/parser.y | 31 + 3 files changed, 417 insertions(+), 712 deletions(-) + + 2006-12-07 23:20:41 +0000 William Pitcock revision [746] - merge in blargg's changes diff -r 17311560f45f -r 5d3f4b156197 src/alsa/audio.c --- a/src/alsa/audio.c Fri Dec 08 03:27:31 2006 -0800 +++ b/src/alsa/audio.c Fri Dec 08 17:52:54 2006 -0800 @@ -527,6 +527,14 @@ SND_MIXER_SCHN_FRONT_LEFT, l); snd_mixer_selem_set_playback_volume(pcm_element, SND_MIXER_SCHN_FRONT_RIGHT, r); + + if (snd_mixer_selem_has_playback_switch(pcm_element)) + { + snd_mixer_selem_set_playback_switch(pcm_element, + SND_MIXER_SCHN_FRONT_LEFT, l != 0); + snd_mixer_selem_set_playback_switch(pcm_element, + SND_MIXER_SCHN_FRONT_RIGHT, r != 0); + } }