Skip to content
This repository
Browse code

Was allocating the wrong structure in setMidiEvents.

  • Loading branch information...
commit 3e1a859afa93fa9cd84d958d9c0934a85de58d67 1 parent c8cac2a
authored June 21, 2009
BIN  libjvsthost2.jnilib
Binary file not shown
2  src/com/synthbot/audioplugin/vst/vst2/JVstHost.cpp
@@ -1172,7 +1172,7 @@ VstEvents *setMidiEvents(JNIEnv *env, jobjectArray midiMessages, AEffect* effect
1172 1172
   jobject midiMessage;
1173 1173
   VstEvents *vstes;
1174 1174
   if (numMessages <= 2) {
1175  
-    vstes = (VstEvents *) malloc(sizeof(VstEvent));
  1175
+    vstes = (VstEvents *) malloc(sizeof(VstEvents));
1176 1176
   } else {
1177 1177
     vstes = (VstEvents *) malloc(sizeof(VstEvents) + (numMessages-2)*sizeof(VstEvent *));
1178 1178
   }
2  src/com/synthbot/audioplugin/vst/vst2/buildJvh.sh
@@ -2,7 +2,7 @@ export LD_LIBRARY_PATH=.
2 2
 
3 3
 # -O3 optimise!
4 4
 # -g3 -ggdb3 debug!
5  
-gcc -framework CoreFoundation -framework Carbon -o libjvsthost2.jnilib -fPIC -dynamiclib -O3  \
  5
+gcc -framework CoreFoundation -framework Carbon -o libjvsthost2.jnilib -dynamiclib -O3 \
6 6
 -I./ \
7 7
 -I./vst2.x \
8 8
 -I/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Headers \

0 notes on commit 3e1a859

Please sign in to comment.
Something went wrong with that request. Please try again.