Mercurial > audlegacy-plugins
changeset 343:5d3f4b156197 trunk
[svn] - mute the soundcard if volume is 0.
author | nenolod |
---|---|
date | Fri, 08 Dec 2006 17:52:54 -0800 |
parents | 17311560f45f |
children | 03c1ae10bc8d |
files | ChangeLog src/alsa/audio.c |
diffstat | 2 files changed, 18 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 <nenolod@nenolod.net> + 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 <nenolod@nenolod.net> revision [746] - merge in blargg's changes
--- 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); + } }