Skip to main content
August 25, 2007
Question

Synconizing Sound Files during Playback

  • August 25, 2007
  • 1 reply
  • 176 views
I'm trying to create a drumbox with multiple looped sound tracks. The user will have the ability to turn on and off sounds (e.g. hi-hat, snare drum, bass drum, etc). I've figured out how to start and stop sounds, loop them, and remove any unwanted delay between loops, but I can't figure out how to synchronize the files to one another. For example, if track 1 is playing and I turn track 2 on, I either want it to wait until track 1 is ready to start the next loop, or for track 2 to start at the position Track 1 is already at, so they are synchronized together.

Any idea how to do this?

Dave
This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
August 26, 2007
check the properties and methods of the sound class. in particular, the position property, the onSoundComplete method and the start method and its parameters.