diff options
Diffstat (limited to 'media-libs/freeverb3/files/freeverb3-3.0.0-audacious-3.3.x.patch')
-rw-r--r-- | media-libs/freeverb3/files/freeverb3-3.0.0-audacious-3.3.x.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/media-libs/freeverb3/files/freeverb3-3.0.0-audacious-3.3.x.patch b/media-libs/freeverb3/files/freeverb3-3.0.0-audacious-3.3.x.patch new file mode 100644 index 000000000000..9e343c0b0838 --- /dev/null +++ b/media-libs/freeverb3/files/freeverb3-3.0.0-audacious-3.3.x.patch @@ -0,0 +1,40 @@ +From 43416e5d5ce5d13f81e1cd0f69da7ff0351f6d65 Mon Sep 17 00:00:00 2001 +From: Sebastian Pipping <sebastian@pipping.org> +Date: Sat, 8 Jun 2013 14:00:33 +0200 +Subject: [PATCH] Make Audacious plugin work with Audacious 3.3.x, too + +--- + audacious/so.c | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/audacious/so.c b/audacious/so.c +index 8c679df..37aa056 100644 +--- a/audacious/so.c ++++ b/audacious/so.c +@@ -44,8 +44,12 @@ static void dsp_start(gint * channels, gint * rate){ if(ptable != NULL) ptable-> + static void dsp_process(gfloat ** data, gint * samples){ if(ptable != NULL) ptable->process(data,samples); } + static void dsp_flush(){ if(ptable != NULL) ptable->flush(); } + static void dsp_finish(gfloat ** data, gint * samples){ if(ptable != NULL) ptable->finish(data,samples); } ++#if defined(_AUD_PLUGIN_VERSION_MIN) && (_AUD_PLUGIN_VERSION_MIN < 40) + static gint decoder_to_output_time(gint time){ return time; } + static gint output_to_decoder_time(gint time){ return time; } ++#else ++static int adjust_delay(int delay){ return delay; } ++#endif + + AUD_EFFECT_PLUGIN + ( +@@ -57,6 +61,10 @@ AUD_EFFECT_PLUGIN + .start = dsp_start, + .process = dsp_process, + .finish = dsp_finish, ++#if defined(_AUD_PLUGIN_VERSION_MIN) && (_AUD_PLUGIN_VERSION_MIN < 40) + .decoder_to_output_time = decoder_to_output_time, + .output_to_decoder_time = output_to_decoder_time, ++#else ++ .adjust_delay = adjust_delay, ++#endif + ) +-- +1.8.2.1 + |