New to FMOD, but I was wondering how I may program this. I want my playback to restart and go back to the beginning every time I play the track after pausing. Appreciate any helps, thanks!
The easiest way probably is to kill your event instance and to restart a new one.
The docs mention that calling start() a second time will restart playback. From my testing this is true.
Hi Kadyn,
Welcome to FMOD!
As the two great answers above mentioned, there are several ways to achieve this.
One simple approach is to use Studio::EventInstance::stop to stop the playback, and then call Studio::EventInstance::start to start it again from the beginning.
Hope this helps!