Enlightenment CVS committal Author : moom Project : e_modules Module : mixer
Dir : e_modules/mixer Modified Files: alsa_mixer.c Log Message: * Ok, this should work now... hopefully... =================================================================== RCS file: /cvs/e/e_modules/mixer/alsa_mixer.c,v retrieving revision 1.16 retrieving revision 1.17 diff -u -3 -r1.16 -r1.17 --- alsa_mixer.c 12 Sep 2006 16:28:37 -0000 1.16 +++ alsa_mixer.c 12 Sep 2006 16:43:59 -0000 1.17 @@ -476,7 +476,7 @@ id = _alsa_get_mixer_id(name); if (id == channel_id) { - if (snd_mixer_selem_has_playback_switch(elem)) + if (snd_mixer_selem_has_playback_switch(elem)) { snd_mixer_selem_get_playback_switch(elem, id, &mute); break; @@ -494,7 +494,7 @@ } snd_mixer_close(handle); - return mute; + return (mute == 1 ? 0: 1); } int @@ -548,7 +548,7 @@ if (id == channel_id) { if (snd_mixer_selem_has_playback_switch_joined(elem)) - snd_mixer_selem_set_playback_switch(elem, id, mute); + snd_mixer_selem_set_playback_switch(elem, id, (mute == 1 ? 0: 1)); else { snd_mixer_close(handle); ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs