petegoodliffe / PGMidi

PGMidi iOS MIDI library and example code
296 stars 83 forks source link

Enable Background Mode, Set Virtual ports to Enabled. #12

Closed rhoiberg closed 9 years ago

rhoiberg commented 10 years ago

I have enabled VirtualMidiPorts in this fork. MIDIDestinationCreate fails with a -10844, (kMIDINotPermitted) OSStatus unless you have the audio key set for UIBackgroundModes.

Using TouchOSC, I see both the source and the destination. I know that MIDI Events are being sent, however the callback procs in MidiMonitor are never called.

These changes at least enable the VirtualMidi functionality. Would love to solve this mystery.