« Conference Pictures f… | Home | Feedback cases from t… »

Sandbox and playing Midi

If you plan to use our MidiPlaybackMBS class with a sandboxed application on Mac OS X, than you may not hear any sound. Initialization of the class fails due to restricted permissions.
The fix is to add a couple of entitlements:
  • com.apple.security.device.microphone
    This one allows your application to access the microphone.
  • com.apple.security.temporary-exception.mach-lookup.global-name
    This allows talking to the MIDI Server which coordinates all the Midi functionality across applications.
  • com.apple.security.temporary-exception.audio-unit-host
    This allows talking to audio components which are not itself sandboxed.
Those keys may also be needed with other audio related classes.

For more details, please check developer.apple.com/library/mac/qa/qa1483/.
15 09 13 - 11:05