summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPieter van den Abeele <pvdabeel@gentoo.org>2003-07-14 18:18:37 +0000
committerPieter van den Abeele <pvdabeel@gentoo.org>2003-07-14 18:18:37 +0000
commitd290dde21d7c7853408f552cd3a46b33c3a4170b (patch)
treebf67b23e90b28f9acf6714695db9969e0daede1d /media-sound/bpmdj/files
parentbug 20801 (diff)
downloadgentoo-2-d290dde21d7c7853408f552cd3a46b33c3a4170b.tar.gz
gentoo-2-d290dde21d7c7853408f552cd3a46b33c3a4170b.tar.bz2
gentoo-2-d290dde21d7c7853408f552cd3a46b33c3a4170b.zip
bug 20801
Diffstat (limited to 'media-sound/bpmdj/files')
-rw-r--r--media-sound/bpmdj/files/digest-bpmdj-1.71
-rw-r--r--media-sound/bpmdj/files/digest-bpmdj-1.81
-rw-r--r--media-sound/bpmdj/files/fabsl-1.7.patch22
-rw-r--r--media-sound/bpmdj/files/fabsl-1.8.patch28
4 files changed, 52 insertions, 0 deletions
diff --git a/media-sound/bpmdj/files/digest-bpmdj-1.7 b/media-sound/bpmdj/files/digest-bpmdj-1.7
new file mode 100644
index 000000000000..ef2f057a8c5a
--- /dev/null
+++ b/media-sound/bpmdj/files/digest-bpmdj-1.7
@@ -0,0 +1 @@
+MD5 b1802aa463ab03298da9967af31da145 bpmdj-1.7.source.tgz 1705756
diff --git a/media-sound/bpmdj/files/digest-bpmdj-1.8 b/media-sound/bpmdj/files/digest-bpmdj-1.8
new file mode 100644
index 000000000000..8b8a8a83b7cd
--- /dev/null
+++ b/media-sound/bpmdj/files/digest-bpmdj-1.8
@@ -0,0 +1 @@
+MD5 4f4d09723c42b37f005df2f9135f1de9 bpmdj-1.8.source.tgz 697466
diff --git a/media-sound/bpmdj/files/fabsl-1.7.patch b/media-sound/bpmdj/files/fabsl-1.7.patch
new file mode 100644
index 000000000000..fa0eea0cf9fe
--- /dev/null
+++ b/media-sound/bpmdj/files/fabsl-1.7.patch
@@ -0,0 +1,22 @@
+--- kbpm-counter.cpp 2003-04-26 19:31:56.000000000 +0200
++++ /root/kbpm-counter.cpp 2003-07-14 19:55:32.000000000 +0200
+@@ -617,8 +617,8 @@
+ // normalize the result
+ double max = 0;
+ for(pos=0;pos<blocksize/2;pos++)
+- // fftfreq[pos]=fabsl(fftfreq[pos]*(double)pos/((double)blocksize*10.0));
+- fftfreq[pos]=fabsl(fftfreq[pos]);
++ // fftfreq[pos]=fabs(fftfreq[pos]*(double)pos/((double)blocksize*10.0));
++ fftfreq[pos]=fabs(fftfreq[pos]);
+ for(pos=0;pos<blocksize/2;pos++)
+ if (fftfreq[pos]>max)
+ max=fftfreq[pos];
+@@ -637,7 +637,7 @@
+ {
+ double length = barkbounds[bark+1]-barkbounds[bark];
+ double barkcentre = barkbounds[bark]+length/2.0;
+- double dist = fabsl(freq-barkcentre)*2.0/length;
++ double dist = fabs(freq-barkcentre)*2.0/length;
+ double scale = 1.0 - dist;
+ assert(scale>=0.0);
+ barkscale[bark]+=fftfreq[pos]*scale;
diff --git a/media-sound/bpmdj/files/fabsl-1.8.patch b/media-sound/bpmdj/files/fabsl-1.8.patch
new file mode 100644
index 000000000000..3cc69221f7ff
--- /dev/null
+++ b/media-sound/bpmdj/files/fabsl-1.8.patch
@@ -0,0 +1,28 @@
+--- spectrumanalyzer.logic.cpp 2003-06-12 23:12:20.000000000 +0200
++++ /root/spectrumanalyzer.logic.cpp 2003-07-14 19:29:52.000000000 +0200
+@@ -47,6 +47,7 @@
+ #include <time.h>
+ #include <sys/times.h>
+ #include <math.h>
++#include <cmath>
+ #include <assert.h>
+ #include <math.h>
+ #include <pthread.h>
+@@ -192,7 +193,7 @@
+ double max = 0;
+ for(pos=0;pos<blocksize/2;pos++)
+ // fftfreq[pos]=fabsl(fftfreq[pos]*(double)pos/((double)blocksize*10.0));
+- fftfreq[pos]=fabsl(fftfreq[pos]);
++ fftfreq[pos]=fabs(fftfreq[pos]);
+ for(pos=0;pos<blocksize/2;pos++)
+ if (fftfreq[pos]>max)
+ max=fftfreq[pos];
+@@ -211,7 +212,7 @@
+ {
+ double length = barkbounds[bark+1]-barkbounds[bark];
+ double barkcentre = barkbounds[bark]+length/2.0;
+- double dist = fabsl(freq-barkcentre)*2.0/length;
++ double dist = fabs(freq-barkcentre)*2.0/length;
+ double scale = 1.0 - dist;
+ assert(scale>=0.0);
+ barkscale[bark]+=fftfreq[pos]*scale;