• 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
How to unschedule MIDIReceived messages from a virtual source
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to unschedule MIDIReceived messages from a virtual source


  • Subject: How to unschedule MIDIReceived messages from a virtual source
  • From: Igor Clark <email@hidden>
  • Date: Wed, 09 May 2018 11:08:07 +0100

Hi list,

I have a virtual MIDI source SourceEndpointRef created with MIDICreateSource. I'm using it to batch-transmit a bunch of generated messages to listening clients by sending MIDIPacketLists via MIDIReceived(). Works great.

I want to cancel/unschedule the previously-sent batches when certain factors change and a new batch is generated, but MIDIFlushOutput( SourceEndpointRef ) returns -10832, kMIDIWrongEndpointType ("A source endpoint was passed to a function expecting a destination, or vice versa").

Is there a counterpart function or an alternative mechanism for unscheduling messages previously scheduled by MIDIReceived?

Thanks,
Igor
_______________________________________________
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

  • Prev by Date: Audio unit validation on High Sierra
  • Next by Date: Client HAL API access from global context
  • Previous by thread: Audio unit validation on High Sierra
  • Next by thread: Client HAL API access from global context
  • Index(es):
    • Date
    • Thread