mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-15 20:29:58 +01:00
New Source Callbacks for Play control )fast forward, seek, etc.)
2 new callbacks (PlayFastForward, PlaySpeed), modified Seek callback to take target time in seconds (instead of ratio of duration). Integrating this in Input Mapping GUI and Session saving.
This commit is contained in:
@@ -1383,6 +1383,17 @@ void SessionLoader::visit (Play &c)
|
||||
c.setBidirectional(b);
|
||||
}
|
||||
|
||||
void SessionLoader::visit (PlayFastForward &c)
|
||||
{
|
||||
float d = 0.f;
|
||||
xmlCurrent_->QueryFloatAttribute("step", &d);
|
||||
c.setValue(d);
|
||||
|
||||
d = 0.f;
|
||||
xmlCurrent_->QueryFloatAttribute("duration", &d);
|
||||
c.setDuration(d);
|
||||
}
|
||||
|
||||
void SessionLoader::visit (SetAlpha &c)
|
||||
{
|
||||
float a = 0.f;
|
||||
|
||||
Reference in New Issue
Block a user