diff options
author | pav <pav@FreeBSD.org> | 2004-11-22 16:55:09 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2004-11-22 16:55:09 +0800 |
commit | b300af9476f88dd999198e1892e03308e044e628 (patch) | |
tree | 19006a0200bf44fff63702ff24cfdd3a142b4e7e | |
parent | e07940670cb6719220595dff7c52c514dda647d8 (diff) | |
download | freebsd-ports-gnome-b300af9476f88dd999198e1892e03308e044e628.tar.gz freebsd-ports-gnome-b300af9476f88dd999198e1892e03308e044e628.tar.zst freebsd-ports-gnome-b300af9476f88dd999198e1892e03308e044e628.zip |
- Fix build on 4.x
-rw-r--r-- | audio/xmms-crossfade/files/patch-rate.c | 24 | ||||
-rw-r--r-- | audio/xmms-crossfade/files/patch-volume.c | 16 |
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); + } + |