My game has a layered soundtrack, and I play each layer in a separate channel. I want to make sure that each channel stays in sync with each other. How do I ensure this?
The track plays throughout the entire duration of the game, and I raise and lower volumes of each channel depending on context.
Hi,
Thank you for sharing the information.
Could I please get some screenshots of how you set up the event in FMOD Studio? So I can better understand your set up?
You could consider using System::createChannelGroup to create a master channel group so that you can organize all your audio channels under a single parent channel group. Then, use System::playSound to assign individual sound to that master channel group.
To play all channels in sync, you could use ChannelControl::getDSPClock to retrieve the current DSP clock and use ChannelControl::setDelay to ensure all channels to playback at the same time.
Hope this helps, please let me know if you have any questions.