Closed luismartimor closed 8 years ago
Hi @mekeo,
Just so it's clear, you're using the LinkKit 2.0.0-Beta-1 release, which is a pre-release (not ready for production yet). I expect that we'll have a production-ready 2.0.0 release relatively soon, so if you can wait a little bit it makes sense to build on this but I just wanted to make sure you're aware.
As to your question, I think the problem is that you're not committing the modified timeline after you change it. ABLLinkSetTempo
modifies the timeline that you pass to it, but the Link session does not change until you actually commit a modified timeline using ABLLinkCommitAudioTimeline
. You can call the commit function unconditionally at the end of your audio callback because if the timeline hasn't changed it will be a no-op.
We've made the API more transactional in this 2.0 version for a couple of reasons:
Perfect answer, thanks!
I've been implementing Link these days and seems to work perfect except for one thing. ABLLinkSetTempo does absolutely nothing. Here is the code relating to the problem. tempoChange is setted only when the user changes the tempo in my app. Why is this tempo proposal ignored ?