• 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
Need help resolving auval failure : ERROR: -4 IN CALL MusicDeviceSendMIDI
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Need help resolving auval failure : ERROR: -4 IN CALL MusicDeviceSendMIDI


  • Subject: Need help resolving auval failure : ERROR: -4 IN CALL MusicDeviceSendMIDI
  • From: John Smith <email@hidden>
  • Date: Wed, 21 Sep 2016 17:03:10 +0000 (UTC)

I recently converted my AU from an audio effect into a music effect so that it can receive MIDI controller messages from the host. Only problem is my AU fails the auval MIDI test with the message “ERROR: -4 IN CALL MusicDeviceSendMIDI”. The error message is unclear because I am not inheriting from the MusicDeviceBase class. I could use some help in trying to isolate the cause of this error. Or general feedback if I am going about this the wrong way.

Here is some background information:
1) While converting my AU to a music effect, I changed the inheritance from AUEffectBase to  AUMIDIEffectBase. I implemented overrides for public and protected methods having to do with MIDI, making sure that my AU does not return error -4 (kAudio_UnimplementedError).
2) I followed the instructions in this tech note to be forward compatible with the new AUPlugin model, and backwards compatible with OS X v10.6.x:  https://developer.apple.com/library/content/technotes/tn2276/_index.html
3) I updated all occurrences of kAudioUnitType_Effect (aufx) to kAudioUnitType_MusicEffect (aumf), including the Info.plist dictionary entry described in the above tech note.

System Config:
OS X 10.11.6
auval v1.6.1a1 
 _______________________________________________
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: Need help resolving auval failure : ERROR: -4 IN CALL MusicDeviceSendMIDI
      • From: Douglas Scott <email@hidden>
  • Prev by Date: Re: AudioUnitRender() thread safe?
  • Next by Date: crash in com.apple.audio.AppleHDAHALPlugIn
  • Previous by thread: core audio iOS, multiple input sources
  • Next by thread: Re: Need help resolving auval failure : ERROR: -4 IN CALL MusicDeviceSendMIDI
  • Index(es):
    • Date
    • Thread