mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
- Fix build on 4.x
This commit is contained in:
parent
50ca6ecd1d
commit
239dfa90c4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=122123
24
audio/xmms-crossfade/files/patch-rate.c
Normal file
24
audio/xmms-crossfade/files/patch-rate.c
Normal file
@ -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) {
|
16
audio/xmms-crossfade/files/patch-volume.c
Normal file
16
audio/xmms-crossfade/files/patch-volume.c
Normal file
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user