Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Must MIDIRestart() be called from the main thread?



The subject says it all. I am trying to access the CoreMIDI library from LispWorks 4.4. Unfortunately I have found that calling MIDIRestart() (or any CoreMIDI function) interactively from a thread which isn't the initial thread results in the following:

CoreMIDI: timeout waiting for MIDIServer to start
-10839

If I build a LispWorks image which doesn't start multiple threads by default, calling MIDIRestart() does succeed. Once the connection to the MIDIServer is established it appears as if I can call CoreMIDI functions from any thread.

My question(s) are: Does the first CoreMIDI call have to be done from the main thread? If so is there any chance that this restriction could get lifted? Does anyone know how the initial handshake with the MIDIServer is done?

Thanks in advance for any insight/help.

Cheers,

-greg

_______________________________________________________
Greg Wuller                             email@hidden
_______________________________________________________

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/coreaudio-api/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.