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

1 playhead for multiple timelines....? #86

Open
JoshuaBatty opened this issue Feb 15, 2013 · 0 comments
Open

1 playhead for multiple timelines....? #86

JoshuaBatty opened this issue Feb 15, 2013 · 0 comments

Comments

@JoshuaBatty
Copy link

I am building an audiovisual app that has a lot of DSP and audio parameters that I need to automate. So much so that I have split the Mater controls, shader params and DSP params into 3 separate timeline classes. In my GUI, I have toggles setup to switch between the different timelines.

Only problem is that I essentially now have 3 playheads. 1 for each timeline. What I need is just one playhead (coming from the master) that can then drive the playhead postion of the other 2 timelines manually.

Currently I am doing ->
//--------------------------------------------------------------
float MainTimeline::getCurrentTimeMillis(){
return timeline.getCurrentTimeMillis();
}
Then in my 2 other timelines trying this ->
//--------------------------------------------------------------
void AudioTimeline::update(MainTimeline *mTimeline){
timeline.setCurrentTimeMillis(mTimeline->getCurrentTimeMillis());
}

But unless I call timeline.play() then the playhead doesn't move.

Any ideas on how to achieve this Jim?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant