0
0

Hi, I’m making an application that heavily relies on setDelay for synchronization purposes. I’m well into the development process and I need to implement the pause feature of the app.

Pausing channels and channel groups is a very straightforward task, however, there are huge complications when pausing while an instance has been scheduled as the internal DSP clock keeps going. This considerably skews my synchronization.

Do you have ideas on how to solve this problem?

Thanks,
Fred

  • You must to post comments
0
0

An interesting feature that would solve many potential situations would be to be able to pause the DSP clock.

Is this in your plans?

  • You must to post comments
0
0

We don’t currently have plans to support pausing the DSP clock.

I have added an example of sample-accurate sequencing with setDelay to the wiki at [url:1iknv4dj]http://www.fmod.org/wiki/index.php5?title=Sample-accurate_sequencing_with_setDelay[/url:1iknv4dj]. The SoundManager::setPaused function provides an example of how to manage pausing and unpausing.

  • You must to post comments
0
0

I’ve implemented a pause system that uses DSPCLOCK delays as well. I was stopping all playing sounds, saving the play position and then setting the positions back to the saved positions when unpausing. As of late this hasn’t been working as setPosition() doesn’t seem to get respected when starting a sample using a DSPCLOCK delay. It’s always starting from the beginning.

I switched over to use the example that Ben posted but the part that’s not working for me is this line:

m_parentStream[i]->setDelayTime(FMOD_DELAYTYPE_DSPCLOCK_PAUSE,m_pauseTimeHi,m_pauseTimeLo);

I’ve made this call to PAUSE the channel in the future (I’ve checked that it is indeed on a DSPCLOCK tick that is in the future) and it never ends up pausing the channel. The DSPCLOCK timer just rolls by and keeps playing. Did you get the same result?

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.