Hello
I’m developing a rhythm game. As others, I would like to keep the sync between music and game as close as possible.
Up to now, I always succeed to do that using EVENT_CALLBACK, by synchronising the game on the first TIMELINE_BEAT
However, I would like to pause/unpause, and sync the game when unpause is done.
I’m a little bit confused about the way it works.
Here is one of my reference topic : Some delay occurs when pause the music on Android
First, to pause/unpause, we can call myChannel.setPause but also myEventInstance.setPause
Is there a difference between the two ?
Second, if I apply the proposed method referenced in the above post (retrive channel, get dsp clock, set position), does the method setPause is synchronise, or is there an unknown delay between my call and the effective play ?
If there is a delay, how may I know exactly when the music starts again and to know at which position (in ms) it unpause ? I’m asking, because there is absolutly no EVENT_CALLBACK triggered after the unpause.
Thank you