summaryrefslogtreecommitdiff
path: root/audio/xmms-crossfade
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-11-22 08:55:09 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-11-22 08:55:09 +0000
commit239dfa90c468cb0ca0d8ae32a73f9fca79132468 (patch)
treeead0ed025311308ccc332fb537e262d3c794f9ba /audio/xmms-crossfade
parentremove outdated comment. (diff)
- Fix build on 4.x
Notes
Notes: svn path=/head/; revision=122123
Diffstat (limited to 'audio/xmms-crossfade')
-rw-r--r--audio/xmms-crossfade/files/patch-rate.c24
-rw-r--r--audio/xmms-crossfade/files/patch-volume.c16
2 files changed, 40 insertions, 0 deletions
diff --git a/audio/xmms-crossfade/files/patch-rate.c b/audio/xmms-crossfade/files/patch-rate.c
new file mode 100644
index 000000000000..8fa7846b5ef2
--- /dev/null
+++ b/audio/xmms-crossfade/files/patch-rate.c
@@ -0,0 +1,24 @@
+--- rate.c.orig Fri Sep 24 11:02:14 2004
++++ rate.c Mon Nov 22 09:44:42 2004
+@@ -157,6 +157,10 @@
+ struct timeval tv;
+ glong dt;
+
++ gpointer data;
++ gint isamp, emitted = 0;
++ gint16 *out, *in;
++
+ /* print clipping warnings at most once every second : */
+ gettimeofday(&tv, NULL);
+ dt = (tv.tv_sec - rc->vc.tv_last.tv_sec) * 1000
+@@ -254,9 +258,7 @@
+
+ #else /* rustic resampling */
+
+- gpointer data;
+- gint isamp, emitted = 0;
+- gint16 *out, *in = *buffer;
++ in = *buffer;
+
+ /* some sanity checks */
+ if(length & 3) {
diff --git a/audio/xmms-crossfade/files/patch-volume.c b/audio/xmms-crossfade/files/patch-volume.c
new file mode 100644
index 000000000000..3653ceaa3138
--- /dev/null
+++ b/audio/xmms-crossfade/files/patch-volume.c
@@ -0,0 +1,16 @@
+--- volume.c.orig Tue Sep 14 18:38:00 2004
++++ volume.c Mon Nov 22 09:46:55 2004
+@@ -81,11 +81,12 @@
+
+ gfloat volume_compute_factor(gint percent, gint dB_range)
+ {
++ gfloat dB;
+ if(percent>=100)
+ return 1;
+ if(percent<=0)
+ return 0;
+- gfloat dB = (percent-100)/100.0*dB_range;
++ dB = (percent-100)/100.0*dB_range;
+ return pow(10, dB/20);
+ }
+