libpd / abl_link

Ableton Link integration for Pure Data on desktop and Android.
Other
80 stars 15 forks source link

abl_link~ lags when iOS app moves to the background #14

Closed virusys closed 7 years ago

virusys commented 7 years ago

If I am running a libpd patch inside an iOS app with the abl_link~ external present, the timing will get delayed as the app moves to the background. I've seen other apps that implement Ableton Link that do not have any interruptions when changing from foreground to background.

I have disabled all of the code in my app delegate that handles background interruptions, so I'm just receiving print messages from my abl_link~ object, and they get delayed every time the app goes into the background. Is there something I can do to get rid of this interruption?

virusys commented 7 years ago

After a bit more investigation, the lag is actually a result of PdDispatcher messages not being fired in the background, but audio still plays continuously, and the abl_link~ timing is still consistent.

My app uses dispatcher messages to trigger notes sent from my objc code, so when the app moves into the background there's a small period of time where these messages are not picked up.