summaryrefslogtreecommitdiff
path: root/audio/denemo/files/patch-src__pitchentry.c
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2011-06-03 15:51:40 +0000
committerPav Lucistnik <pav@FreeBSD.org>2011-06-03 15:51:40 +0000
commitde582d652d7a853b876ea9c7dda86f888c01488c (patch)
tree104e6329d7af33d7bf1e3ce2515b03248f3ff5ba /audio/denemo/files/patch-src__pitchentry.c
parent- Update to 0.2.3 (diff)
- Update to 0.9.0
PR: ports/156861 Submitted by: Kalten <kalten@gmx.at>
Notes
Notes: svn path=/head/; revision=275033
Diffstat (limited to 'audio/denemo/files/patch-src__pitchentry.c')
-rw-r--r--audio/denemo/files/patch-src__pitchentry.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/audio/denemo/files/patch-src__pitchentry.c b/audio/denemo/files/patch-src__pitchentry.c
new file mode 100644
index 000000000000..eb7c540f57f1
--- /dev/null
+++ b/audio/denemo/files/patch-src__pitchentry.c
@@ -0,0 +1,13 @@
+--- src/pitchentry.c.orig 2011-04-27 19:59:45.153923000 +0200
++++ src/pitchentry.c 2011-05-07 11:02:38.000000000 +0200
+@@ -14,7 +14,9 @@
+ #define DEFAULT_HIGH (4500.0)
+ #define DEFAULT_LOW (60.0)
+ #define DEFAULT_TIMER_RATE (50)
+-
++#ifndef log2(x)
++ #define log2(x) (log(x)/log(2))
++#endif
+
+ static GtkWidget *PR_window = NULL;/* a top level window for controlling pitch-recognition entry.
+ We do not create one of these for each view (ie each DenemoGUI object, ie each score) because there is only one audio input source being used, so we would have to cope with resource contention issues, there is just no point. */