Re: Stuck MIDI notes
Re: Stuck MIDI notes
- Subject: Re: Stuck MIDI notes
- From: Robert Grant <email@hidden>
- Date: Wed, 30 Oct 2002 20:03:32 -0500
So then I'm confused about why I'm losing the note offs. My code is
to crunch the packets is pretty straightforward:
MIDIPacket *inPacket = (MIDIPacket *)list->packet; // remove const
for ( j = 0; j < list->numPackets; ++j) {
if ((inPacket->data[0] & 0x7) == m_channel) {
MusicDeviceMIDIEvent(unit, inPacket->data[0],
inPacket->data[1], inPacket->data[2],
0);
}
inPacket = MIDIPacketNext(inPacket);
}
Doesn't seem possible really.
Thanks,
Robert.
On Wednesday, October 30, 2002, at 05:36 PM, Bill Stewart wrote:
Yes - it doesn't matter where its created - when you attach it to an
output
(device) unit its going to be called on the I/O thread of that device.
We have seen some problems with this kind of operation (scheduling
from one
thread and rendering from another) - we've addressed those problems -
but
typically you *WON'T* see those problems in the scenario that you're
describing...
Bill
on 30/10/02 1:00 PM, Robert Grant wrote:
So here's the real question perhaps:
Can I call MusicDeviceMIDIEvent() from the MIDI receive proc thread
even though the
MusicDevice was created in the main UI thread?
I'm hoping the answer is yes :-)
Robert.
_______________________________________________
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.
--
mailto:email@hidden
tel: +1 408 974 4056
_______________________________________________________________________
___
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
_______________________________________________________________________
___
_______________________________________________
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.
_______________________________________________
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.