Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mixer

Dir     : e_modules/mixer


Modified Files:
        alsa_mixer.c 


Log Message:
Alsa mute fixes. Thanks Simon :)

===================================================================
RCS file: /cvs/e/e_modules/mixer/alsa_mixer.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- alsa_mixer.c        12 Sep 2006 15:51:44 -0000      1.13
+++ alsa_mixer.c        12 Sep 2006 16:06:04 -0000      1.14
@@ -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

Reply via email to