Multiple MIDI packetlist sequences?
Multiple MIDI packetlist sequences?
- Subject: Multiple MIDI packetlist sequences?
- From: Tom Jeffries <email@hidden>
- Date: Thu, 15 Sep 2011 17:23:22 -0700
I'm getting some very strange results working with MIDI packetlists.
I want to use 8 different complete packetlists, each playing its own
series of packets. The goal is to allow some time differences between
the 8 tracks. Rather than putting them all in one sequence I want to
have 8 sets of MIDI packets being sent independently. I am calling
MIDIPacketListInit 8 times with 8 different MIDIPacketList pointers,
and then calling MIDIPacketListAdd for each event in each of the 8
tracks.
That results in some complex code, and it's possible I've got a
pointer error going on. But I've been tracing through everything, and
I don't see it. CoreMIDI seems to be treating all 8 tracks as though
they were using the same data space, and unless I set the initial size
for each track to be large enough to handle all the tracks I get
crashes.
If it's known that CoreMIDI can handle multiple tracks at the same
time, each with a different set of packetlists, then it's a problem in
my code. But- is that known? I've never seen example code that uses
more than one track. Has anybody done what I'm trying to do and
succeeded?
Thanks, Tom Jeffries
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden