BugFix Seek callback

Fixed seek to accept different input (target time, target percent, or hh:mm:ss) and add OSC target for HH MM SS MS
This commit is contained in:
Bruno Herbelin
2023-11-14 20:51:19 +01:00
parent 6735e5eaaa
commit cf3bceeb46
9 changed files with 220 additions and 180 deletions

View File

@@ -1594,6 +1594,17 @@ void SessionLoader::visit (PlayFastForward &c)
c.setDuration(d);
}
void SessionLoader::visit (Seek &c)
{
uint64_t v = 0.f;
xmlCurrent_->QueryUnsigned64Attribute("value", &v);
c.setValue(v);
bool b = false;
xmlCurrent_->QueryBoolAttribute("bidirectional", &b);
c.setBidirectional(b);
}
void SessionLoader::visit (SetAlpha &c)
{
float a = 0.f;