Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External time mode #5638

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

arturoc
Copy link
Member

@arturoc arturoc commented May 24, 2017

Adds a new time mode, external, that allows to set the global OF
time calls to return the time based on an external source.

A common case could be a sound source for synchronizing animations,
to sound.

This includes a new funcion in fmod: ofFmodGetDSPTime that can be used
with this new functionality as:

ofSetTimeModeExternal(ofFmodGetDSPTime, ofTime());

although for sound is recomended to use:

ofSetTimeModeExternalFiltered(ofFmodGetDSPTime, ofTime(), 0.99);

or similar since the different update rates can make the ofGetLastFrameTime
very noisy otherwise

Adds a new time mode, external, that allows to set the global OF
time calls to return the time based on an external source.

A common case could be a sound source for synchronizing animations,
to sound.

This includes a new funcion in fmod: ofFmodGetDSPTime that can be used
with this new functionality as:

```
ofSetTimeModeExternal(ofFmodGetDSPTime, ofTime());
```

although for sound is recomended to use:

```
ofSetTimeModeExternalFiltered(ofFmodGetDSPTime, ofTime(), 0.99);
```

or similar since the different update rates can make the ofGetLastFrameTime
very noisy otherwise
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants