Enlightenment CVS committal

Author  : moom
Project : e_modules
Module  : mixer

Dir     : e_modules/mixer


Modified Files:
        alsa_mixer.c 


Log Message:
* printf--


===================================================================
RCS file: /cvs/e/e_modules/mixer/alsa_mixer.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- alsa_mixer.c        12 Sep 2006 16:27:42 -0000      1.15
+++ alsa_mixer.c        12 Sep 2006 16:28:37 -0000      1.16
@@ -476,8 +476,7 @@
        id = _alsa_get_mixer_id(name);
        if (id == channel_id)
          {
-             printf("MOOm: %d %d\n", 
snd_mixer_selem_has_playback_switch(elem), alsa_get_volume(card_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;
@@ -495,7 +494,7 @@
      }
    
    snd_mixer_close(handle);
-   return (mute == 1 ? 0: 1);
+   return mute;
 }
 
 int 
@@ -549,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 == 1 ? 0: 
1));
+              snd_mixer_selem_set_playback_switch(elem, id, mute);
             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