changeset 4650:31a4cc265f31

Removed the deprecated set_eq() function from InputPlugin and other places.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 16 Jun 2008 06:37:18 +0300
parents 39b7d7886edf
children 8a109bf467b2
files src/audacious/input.c src/audacious/input.h src/audacious/plugin.h src/audacious/ui_equalizer.c src/audacious/ui_main_evlisteners.c
diffstat 5 files changed, 1 insertions(+), 31 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/input.c	Mon Jun 16 05:48:26 2008 +0300
+++ b/src/audacious/input.c	Mon Jun 16 06:37:18 2008 +0300
@@ -475,26 +475,6 @@
     return NULL;
 }
 
-
-void
-input_set_eq(gint on, gfloat preamp, gfloat * bands)
-{
-    InputPlayback *playback;
-
-    if (!ip_data.playing)
-        return;
-
-    if ((playback = get_current_input_playback()) == NULL)
-        return;
-
-    if (playback->plugin->set_eq)
-    {
-        plugin_set_current((Plugin *)(playback->plugin));
-        playback->plugin->set_eq(on, preamp, bands);
-    }
-}
-
-
 Tuple *
 input_get_song_tuple(const gchar * filename)
 {
--- a/src/audacious/input.h	Mon Jun 16 05:48:26 2008 +0300
+++ b/src/audacious/input.h	Mon Jun 16 06:37:18 2008 +0300
@@ -62,7 +62,6 @@
 void input_stop(void);
 void input_pause(void);
 gint input_get_time(void);
-void input_set_eq(gint on, gfloat preamp, gfloat * bands);
 void input_seek(gint time);
 
 guchar *input_get_vis(gint time);
--- a/src/audacious/plugin.h	Mon Jun 16 05:48:26 2008 +0300
+++ b/src/audacious/plugin.h	Mon Jun 16 06:37:18 2008 +0300
@@ -1121,8 +1121,6 @@
     void (*pause) (InputPlayback * playback, gshort paused);
     void (*seek) (InputPlayback * playback, gint time);
 
-    void (*set_eq) (gint on, gfloat preamp, gfloat * bands);
-
     gint (*get_time) (InputPlayback * playback);
 
     gint (*get_volume) (gint * l, gint * r);
--- a/src/audacious/ui_equalizer.c	Mon Jun 16 05:48:26 2008 +0300
+++ b/src/audacious/ui_equalizer.c	Mon Jun 16 06:37:18 2008 +0300
@@ -190,10 +190,7 @@
     cfg.equalizer_preamp = ui_skinned_equalizer_slider_get_position(equalizerwin_preamp);
     for (i = 0; i < AUD_EQUALIZER_NBANDS; i++)
         cfg.equalizer_bands[i] = ui_skinned_equalizer_slider_get_position(equalizerwin_bands[i]);
-    /* um .. i think we need both of these for xmms compatibility ..
-       not sure. -larne */
-    input_set_eq(cfg.equalizer_active, cfg.equalizer_preamp,
-                 cfg.equalizer_bands);
+
     output_set_eq(cfg.equalizer_active, cfg.equalizer_preamp,
                   cfg.equalizer_bands);
 
--- a/src/audacious/ui_main_evlisteners.c	Mon Jun 16 05:48:26 2008 +0300
+++ b/src/audacious/ui_main_evlisteners.c	Mon Jun 16 06:37:18 2008 +0300
@@ -439,10 +439,6 @@
 static void
 ui_main_evlistener_equalizer_changed(gpointer hook_data, gpointer user_data)
 {
-    /* um .. i think we need both of these for xmms compatibility ..
-       not sure. -larne */
-    input_set_eq(cfg.equalizer_active, cfg.equalizer_preamp,
-                 cfg.equalizer_bands);
     output_set_eq(cfg.equalizer_active, cfg.equalizer_preamp,
                   cfg.equalizer_bands);
 }