• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Failure of MIDIDeviceCreate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Failure of MIDIDeviceCreate


  • Subject: Failure of MIDIDeviceCreate
  • From: David Tan <email@hidden>
  • Date: Sun, 28 Sep 2008 13:09:06 +0800
  • Hi:
  • Thread-topic: Failure of MIDIDeviceCreate

Title: 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

  • Follow-Ups:
    • Re: Failure of MIDIDeviceCreate
      • From: David Tan <email@hidden>
  • Prev by Date: Re: Audio Input Queue on iPhone
  • Next by Date: Re: Failure of MIDIDeviceCreate
  • Previous by thread: Apple at AES?
  • Next by thread: Re: Failure of MIDIDeviceCreate
  • Index(es):
    • Date
    • Thread