Sound samples sync

Hello,

I’m from native iOS world but for a music a game I would like to test Corona SDK.

Before any new steps I would like to know if Corona provides a special API to manage synchronizations between lots of music samples ?

Incredibox is a good exemple of what I need.

Thanks for your advices.

Hey Pierre3!

I don’t know any special API’s for that.

I’ve done an app that played many samples in a specific timing using on enterframe event and managing the timing myself using a sync table with the time to play/stop the samples. 

You should be aware that corona has a “best effort timing” system for playing audio - 

Best Effort Timing

This audio system is a best effort system. You tell us to play, and we try to play as quickly as possible. There is no guarantee things will start or end at exact times. For example, if you are streaming a song, and there is a buffer underrun due to stress on the CPU, it tries to continue playing as soon as it can. If there was a 1 second delay because of this, the song will end 1 second later than it would have if there was no interruption.

http://developer.coronalabs.com/partner/audionotes

Hey Pierre3!

I don’t know any special API’s for that.

I’ve done an app that played many samples in a specific timing using on enterframe event and managing the timing myself using a sync table with the time to play/stop the samples. 

You should be aware that corona has a “best effort timing” system for playing audio - 

Best Effort Timing

This audio system is a best effort system. You tell us to play, and we try to play as quickly as possible. There is no guarantee things will start or end at exact times. For example, if you are streaming a song, and there is a buffer underrun due to stress on the CPU, it tries to continue playing as soon as it can. If there was a 1 second delay because of this, the song will end 1 second later than it would have if there was no interruption.

http://developer.coronalabs.com/partner/audionotes