Re: Failure of MIDIDeviceCreate
Re: Failure of MIDIDeviceCreate
- Subject: Re: Failure of MIDIDeviceCreate
- From: David Tan <email@hidden>
- Date: Sun, 28 Sep 2008 18:03:50 +0800
- Hi:
- Thread-topic: Failure of MIDIDeviceCreate
Title: Re: Failure of MIDIDeviceCreate
Hi All,
I just want to makeup some information.
-10839 means cannot start MIDI server according to MIDIServices.h.
Sincerely yours,
David Tan
From: David Tan <email@hidden>
Date: Sun, 28 Sep 2008 13:09:06 +0800
To: Apple CoreAudio-API <email@hidden>
Conversation: Failure of MIDIDeviceCreate
Subject: Failure of MIDIDeviceCreate
Hi Masters,
I'm getting a weird problems while developing my MIDI driver.
While trying to create a MIDIDeviceRef object and call other MIDI functions with it, I always get failure.
Here're my steps:
1. Call MIDIDeviceCreate to create a MIDIDeviceRef with a valid MIDIDriverRef as the first parameter.
The OSStatus returned is zero (success).
2. Call MIDIObjectSetIntegerProperty to set a custom property.
The OSStatus returned is –10839.
3. Call MIDIDeviceAddEntity to add the MIDI device object to the MIDIDriverRef mentioned in Step 1.
The OSStatus returned is –10839.
I think the reason of the failure is that MIDIDeviceRef created in Step 1 is invalid. But since the returned
value of the creation indicates it’s successful and the MIDIDeviceRef isn’t NULL. That’s really confusing me.
Could someone here to tell me what’s going on? Any comments and advices will be very appreciated.
Sincerely yours,
David Tan
_______________________________________________
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
_______________________________________________
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