• 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
MIDIDriverEnableSource
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MIDIDriverEnableSource


  • Subject: MIDIDriverEnableSource
  • From: Andy <email@hidden>
  • Date: Sun, 8 Sep 2002 00:28:26 +0100

Has anyone out there actually used/implemented the EnableSource method of a MIDI driver plug-in interface ?

EnableSource(MIDIEndpointRef src, Boolean enabled)

I just can't make sense of it. It appears that whatever I do with the EndpointRef (src) that is passed to the function I always get a -50 error.
the most vague error of all! Normally that means that some parameter in a function is bad and as the /only/ parameter is a MIDIEndpointRef
it must mean that the ref being passed to the driver by the system is invalid !

MIDIEndpointGetEntity and MIDIEndpointGetRefCons both return -50 when used inside EnableSource(). So just what is being passed to my driver here ?

ATM I don't see how it can be a bug in my driver code that is causing this, perhaps it is, but most of my code is based on the sample MIDI driver source provided by Apple.
The driver is working well and correctly apart from this one function. (Which I was kind of relying on to turn on/off an IO task)
I notice that the Apple sample studiously avoids implementing EnableSource !!
_______________________________________________
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.
  • Prev by Date: Re: Core Audio SDK available
  • Next by Date: Re: MIDIDriverEnableSource
  • Previous by thread: Re: Core Audio SDK available
  • Next by thread: Re: MIDIDriverEnableSource
  • Index(es):
    • Date
    • Thread