Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mixer

Dir     : e_modules/mixer


Modified Files:
        alsa_mixer.c 


Log Message:
Couple small changes, trying to track Simon's pcm bug.

===================================================================
RCS file: /cvs/e/e_modules/mixer/alsa_mixer.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- alsa_mixer.c        12 Sep 2006 15:10:29 -0000      1.12
+++ alsa_mixer.c        12 Sep 2006 15:51:44 -0000      1.13
@@ -483,12 +483,11 @@
               }
             else
               {
-                 int m;
                  snd_mixer_close(handle);
-                 m = alsa_get_volume(card_id, channel_id);
-                 if (m <= 0) 
+                 mute = alsa_get_volume(card_id, channel_id);
+                 if (mute <= 0) 
                    return 1;
-                 else 
+                 else
                    return 0;
               }
          }
@@ -554,7 +553,7 @@
               {
                  snd_mixer_close(handle);
                  if (mute)
-                   alsa_set_volume(card_id, channel_id, 0.0);
+                   alsa_set_volume(card_id, channel_id, (0.0 * 100));
                  else
                    alsa_set_volume(card_id, channel_id, (0.5 * 100));
                  return 1;



-------------------------------------------------------------------------
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