Hi,
I'm converting a PC MIDI app over to the Mac.
My PC (interrupt time) read procedure grabs the midi
data and sends it to a
circular buffer.
Then, I post a message to the main event loop, and
process my MIDI data,
which can take quite a lot of time, since my MIDI processing is fairly extensive,
but that's ok, and it all works. Here I keep
looping through the buffer until it's
exhausted.
Should I do the same type of thing on a Mac?
Before I start coding I want to know the
best direction to go.
Perhaps the MIDIPacketLists essentially act as buffers so I can
eliminate my circular buffers?
If so, it seems like I need to use many lists, and cycle through
them.
What I don't understand is the mechanism whereby I
can grab data quickly, then process it
at my leisure -- I'm using MyReadProc from the echo
example -- and it's working fine.
...and straight C.
The read proc is a high priority thread, and not even
the thread of my program, -- I've read (red)
I need to be fast during this routine.
I've read Robert and Kurt's messages, lately, and that
helps a little. It seems like there should
be a simple way to do this by posting messages,
perhaps???
I searched the Mailing lists for MyReadProc, it's mostly about Obj C.
Thank you for any consideration, Paul
Swearingen, San Jose CA 408-258-0233
/bigger>/fontfamily>