changeset 2505:87c53f0e9e0d trunk

[svn] - added set volume hook
author giacomo
date Mon, 12 Feb 2007 07:18:47 -0800
parents fcf730269639
children 630910fd140f
files ChangeLog src/audacious/build_stamp.c src/audacious/input.c
diffstat 3 files changed, 15 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Feb 12 04:34:56 2007 -0800
+++ b/ChangeLog	Mon Feb 12 07:18:47 2007 -0800
@@ -1,3 +1,10 @@
+2007-02-12 12:34:56 +0000  Giacomo Lozito <james@develia.org>
+  revision [4018]
+  - convert filename string to utf8 for playlist->title (closes bug #789)
+  trunk/src/audacious/playlist.c |    2 +-
+  1 file changed, 1 insertion(+), 1 deletion(-)
+
+
 2007-02-11 13:19:07 +0000  Yoshiki Yazawa <yaz@cc.rim.or.jp>
   revision [4016]
   first try for libid3tag integration. this improved libid3tag supports vfs operations and is capable of adding id3v2 tag to files which doesn't have id3v2 tag ever.
--- a/src/audacious/build_stamp.c	Mon Feb 12 04:34:56 2007 -0800
+++ b/src/audacious/build_stamp.c	Mon Feb 12 07:18:47 2007 -0800
@@ -1,2 +1,2 @@
 #include <glib.h>
-const gchar *svn_stamp = "20070211-4016";
+const gchar *svn_stamp = "20070212-4018";
--- a/src/audacious/input.c	Mon Feb 12 04:34:56 2007 -0800
+++ b/src/audacious/input.c	Mon Feb 12 07:18:47 2007 -0800
@@ -42,6 +42,7 @@
 #include "util.h"
 #include "visualization.h"
 #include "widgets/widgetcore.h"
+#include "hook.h"
 
 #include "vfs.h"
 #include "vfs_buffer.h"
@@ -748,6 +749,8 @@
 void
 input_set_volume(gint l, gint r)
 {
+    gint h_vol[2];
+    
     if (playback_get_playing()) {
         if (get_current_input_playback() &&
             get_current_input_playback()->plugin->set_volume &&
@@ -756,6 +759,10 @@
         }
     }
     output_set_volume(l, r);
+    
+    h_vol[0] = l;
+    h_vol[1] = r;
+    hook_call("volume set", h_vol);
 }
 
 void