diff src/audacious/equalizer.c @ 4706:7375fa718dd8

made new equalizer interface that doesn't imply a connection with the UI
author mf0102 <0102@gmx.at>
date Mon, 07 Jul 2008 23:01:59 +0200
parents
children 7e0685ceeb86
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/audacious/equalizer.c	Mon Jul 07 23:01:59 2008 +0200
@@ -0,0 +1,54 @@
+/*  Audacious - Cross-platform multimedia player
+ *  Copyright (C) 2005-2008  Audacious development team.
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; under version 3 of the License.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program.  If not, see <http://www.gnu.org/licenses>.
+ *
+ *  The Audacious team does not consider modular code linking to
+ *  Audacious or using our public API to be a derived work.
+ */
+
+#include "equalizer.h"
+
+#include "legacy/ui_equalizer.h"
+
+void
+equalizer_set_preamp(gfloat preamp)
+{
+    equalizerwin_set_preamp(preamp);
+    equalizerwin_eq_changed();
+}
+
+void
+equalizer_set_band(gint band, gfloat value)
+{
+    equalizerwin_set_band(band, value);
+    equalizerwin_eq_changed();
+}
+
+gfloat
+equalizer_get_preamp(void)
+{
+    return equalizerwin_get_preamp();
+}
+
+gfloat
+equalizer_get_band(gint band)
+{
+    return equalizerwin_get_band(band);
+}
+
+void
+equalizer_activate(gboolean active)
+{
+    equalizerwin_activate(active);
+}