changeset 3557:0cabda3eade8 trunk

Remove effects handling code (it's processed in the flow now).
author William Pitcock <nenolod@atheme.org>
date Tue, 18 Sep 2007 13:30:13 -0500
parents 23fcb140ee13
children 5aec9950c47a
files src/audacious/output.c
diffstat 1 files changed, 0 insertions(+), 25 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/output.c	Tue Sep 18 13:26:04 2007 -0500
+++ b/src/audacious/output.c	Tue Sep 18 13:30:13 2007 -0500
@@ -437,9 +437,6 @@
     int caneq = (fmt == FMT_S16_NE || fmt == myorder);
     OutputPlugin *op = get_current_output_plugin();
     int writeoffs;
-    AFormat new_format;
-    gint new_rate;
-    gint new_nch;
 
     if (postproc_flow == NULL)
     {
@@ -509,28 +506,6 @@
     /* do vis plugin(s) */
     input_add_vis_pcm(time, fmt, nch, length, ptr);
 
-    /* do effect plugin(s) */
-    new_format = op_state.fmt;
-    new_rate = op_state.rate;
-    new_nch = op_state.nch;
-
-    effect_do_query_format(&new_format, &new_rate, &new_nch);
-
-    if (new_format != op_state.fmt ||
-        new_rate != op_state.rate ||
-        new_nch != op_state.nch)
-    {
-        /*
-         * The effect plugin changes the stream format. Reopen the
-         * audio device.
-         */
-        if (!output_open_audio(new_format, new_rate, new_nch))
-            return;
-    }
-
-    length = effect_do_mod_samples(&ptr, length, op_state.fmt, op_state.rate, 
-        op_state.nch);
-
     flow_execute(postproc_flow, ptr, length, op_state.fmt, op_state.rate, op_state.nch);
 
     writeoffs = 0;