mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
Media player synchronicity to beat or phase
Metronome synched play, rewind and step. saving in xml.
This commit is contained in:
@@ -726,6 +726,10 @@ void SessionLoader::visit(MediaPlayer &n)
|
||||
mediaplayerNode->QueryBoolAttribute("rewind_on_disabled", &rewind_on_disabled);
|
||||
n.setRewindOnDisabled(rewind_on_disabled);
|
||||
|
||||
int sync_to_metronome = 0;
|
||||
mediaplayerNode->QueryIntAttribute("sync_to_metronome", &sync_to_metronome);
|
||||
n.setSyncToMetronome( (Metronome::Synchronicity) sync_to_metronome);
|
||||
|
||||
bool play = true;
|
||||
mediaplayerNode->QueryBoolAttribute("play", &play);
|
||||
n.play(play);
|
||||
|
||||
Reference in New Issue
Block a user