forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
freeverb3-3.0.0-audacious-3.3.x.patch
40 lines (36 loc) · 1.4 KB
/
freeverb3-3.0.0-audacious-3.3.x.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From 43416e5d5ce5d13f81e1cd0f69da7ff0351f6d65 Mon Sep 17 00:00:00 2001
From: Sebastian Pipping <[email protected]>
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