Sequencer not playing in background

Viewed 47

I'm building an iOS app with audiokit that plays a midi file with the AppleSequencer (which plays a sampler). Everything works as expected.

But i'd like to let the app play the music in the background. Have everything setup to make this possible. And the audio is playing nicely (fading out).

But it seems the sequencer is paused/stopped in the background. At least there are no midi notes coming through anymore.

I tried a test to play a note every 5 seconds (with a scheduledTimer) and this keeps on playing in the background, so nothing is wrong with the audio.

My question, how can i let the sequencer play while the app is in the background?

0 Answers
Related