1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

- Fix build on 4.x

This commit is contained in:
Pav Lucistnik 2004-11-22 08:55:09 +00:00
parent 50ca6ecd1d
commit 239dfa90c4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=122123
2 changed files with 40 additions and 0 deletions

View 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) {

View 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);
}