Background MIDI

How would you go about implementing background MIDI? I'm working on a sequencer app that needs to keep firing its MIDI events while it's in the background. The solution I currently have is to set to enable background audio and have an AVAudioPlayer playing a silent loop infinitely, but I wonder if there's a more appropriate way to do it?



  • Alas, no! This isn't something that's supported elegantly by iOS; you'll always need to have an active audio system running. Playing an audio file will use a little more CPU juice than is necessary, though; were it me, I'd be making an instance of AEIOAudioUnit from TAAE2 and just starting it up (no need to provide a render block, you won't be doing anything)

  • Ah, I'll give that one a try! Thanks a lot, Michael!

Sign In or Register to comment.