diff src/alarm/alarm.c @ 2149:cf20f1bd2f1e

- updated German translation - cleaned up alarm, mtp_up and song_change plugins
author mf0102 <0102@gmx.at>
date Thu, 01 Nov 2007 21:20:20 +0100
parents b8da6a0b0da2
children 4d6045c20cc5
line wrap: on
line diff
--- a/src/alarm/alarm.c	Thu Nov 01 15:38:07 2007 +0100
+++ b/src/alarm/alarm.c	Thu Nov 01 21:20:20 2007 +0100
@@ -687,7 +687,8 @@
 static void *alarm_fade(void *arg)
 {
    fader *vols = (fader *)arg;
-   guint i, v;
+   guint i;
+   gint v;
    gint inc, diff, adiff;
 
    /* lock */
@@ -718,7 +719,7 @@
      //threadsleep((gfloat)fading / (vols->end - vols->start));
      threadsleep((gfloat)fading / (gfloat)adiff);
      audacious_drct_get_volume_main(&v);
-     audacious_drct_set_volume_main((gint)(v + inc));
+     audacious_drct_set_volume_main(v + inc);
    }
    /* Setting the volume to the end volume sort of defeats the point if having
     * the code in there to allow other apps to control volume too :)
@@ -991,9 +992,6 @@
    stop_tid = 0;
 }
 
-/*
- * for xmms to get the function names
- */
 static GeneralPlugin alarm_plugin =
 {
      .description = "Alarm "VERSION,