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

MIDI notifications?


  • Subject: MIDI notifications?
  • From: Stephen Davis <email@hidden>
  • Date: Sun, 13 Jan 2002 13:09:06 -0800

I'm trying to handle a MIDI interface showing up or going away and I thought registering a MIDINotifyProc() during client creation would get me such a notification. In the normal case I don't. Caveat: I'm using a MIDIMAN MIDISport 1x1 and the driver seems pretty buggy so I just want to know whether or not I _should_ be getting notifications when it comes and goes. I do get a notification when another app creates a virtual source (5 messages in fact) and subsequently destroys that virtual source (1 notification) but not when the MIDISport comes and goes.

BTW, I get the following assert when I unplug my MIDISport:

DebugAssert: Third Party Client: asyncReadResult== noErr [-536870163] done [line 347, file USBMIDIDriverBase.cpp]

If I look at the example code in USBMIDIDriverBase.cpp this appears to be in the InterfaceState::ReadCallback() function. However, if an error occurs, then nothing happens. i.e. nobody appears to be notified that the interface went away. Presumably something else handles the detach notification.

thanks,
stephen


  • Follow-Ups:
    • Re: MIDI notifications?
      • From: Kurt Revis <email@hidden>
References: 
 >Re: kAudioUnitID_BandPassFilter (From: Lieven Dekeyser <email@hidden>)

  • Prev by Date: parameter list order
  • Next by Date: Re: MIDI notifications?
  • Previous by thread: Re: kAudioUnitID_BandPassFilter
  • Next by thread: Re: MIDI notifications?
  • Index(es):
    • Date
    • Thread