MIDIReadProc problem
MIDIReadProc problem
- Subject: MIDIReadProc problem
- From: "Joel May" <email@hidden>
- Date: Fri, 16 Aug 2002 16:30:11 -0500
I'm trying to port our music education game to OSX (Music Ace). I'm
having a problem
with CoreMIDI. The input from the keyboard basically works, but every
so
often, it freezes up, buffers up all incoming packets, then blasts them
to
my app all at once after a delay. This tends to happen if I bang on the
MIDI keyboard (send lots of midi data to the computer all at once).
The
delay can be as long as 20 seconds. The app itself does not hang during
this time. It's just that the midi input thread stops for a while.
The timestamps on the incoming packets are as they would be had the data
arrived properly. This indicates that the CoreMIDIServer code itself is
not
suspended and is properly receiving packets from the keyboard.
I've downloaded a simple CoreMIDI app that someone wrote in Objective C
(Cocoa) called SimpleSynth. It works without any problems. My midi
input
code appears to be equivalent (except it is C++).
I have not converted to the new event callback model. I don't want to
take
the time to do this unless I absolutely have to. Could this cause the
problem? Does the old event mode prevent high-priority threads (like
the
midi input thread) from running properly?
My MIDIReadProc isn't doing much. I just buffers the data for the main
thread to process.
This is a Mach-O executable and I'm using CodeWarrior V7. OS 10.1.5
Thanks in advance.
Joel
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.