Re: Stuck MIDI notes
Re: Stuck MIDI notes
- Subject: Re: Stuck MIDI notes
- From: Chris Rogers <email@hidden>
- Date: Wed, 30 Oct 2002 14:08:28 -0800
Robert,
It's interesting that you're bringing this issue up. In general for
MusicDevices it should be possible. If you're using the DLSMusicDevice
as shipping in Jaguar then there is a problem with thread-safety
(which we've already fixed for the next update) which could result
in dropped notes or even occasional crashes. It's really an issue
with MusicDeviceMIDIEvent() being called from a different thread than
the rendering thread (HAL thread in this case). As I said, we've already
fixed it and you can work around the Jaguar version today by calling
MusicDeviceMIDIEvent() from the pre-render notification of the
DLSMusicDevice (by reading from your own queued events...)
Chris Rogers
Core Audio
Apple Computer
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.