summarylogtreecommitdiffstats
path: root/no_portaudio.patch
blob: 89439c98b10a38b52c5e875a53e8800e0952c871 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff -Naur denemo-2.2.0.orig/src/audio/midi.c denemo-2.2.0.new/src/audio/midi.c
--- denemo-2.2.0.orig/src/audio/midi.c	2017-07-24 20:10:38.333315139 +0200
+++ denemo-2.2.0.new/src/audio/midi.c	2018-01-16 21:14:49.017410549 +0100
@@ -29,6 +29,13 @@
 
 #define SHAVING (0.01)          //seconds to shave off a note start time to ensure stopping before noteon is sent, and starting with noteon first note may depend of speed of machine??? FIXME
 
+#ifndef _HAVE_PORTAUDIO_ 
+gdouble get_playback_speed (void) 
+{ 
+ return 1.0; 
+} 
+void set_playback_speed (double speed) {} 
+#endif
 
 static volatile gboolean playing = FALSE;