How to keep MIDI processing running on iPad if the app is minimised?


#1

Hi,

i try to keep the MIDI processing running if the app is minimised on iPad. (MIDI IO only App)

I have added this to the plist-area in the introjucer:

<?xml version="1.0" encoding="UTF-8"?> 
<plist> 
 <dict> 
  <key>UIBackgroundModes</key> 
  <array> 
   <string>audio</string> 
  </array> 
 </dict> 
</plist>

But the MIDI processing stops if the app is minimised/in background. The only thing that happens, I toggle the buttons if i close the app with 4 fingers.

What do I wrong? Any suggestions?

 

EDIT: may be my post is a bit ill formed: my event loop/timer stops on minimised and this will produce no MIDI out.


#2

Ok, I got it.

If I add a audio callback, then it is working (deviceManager->addAudioCallback(&player); (in VST wrapper)).

Cheers.