From 6099928cefd21ba6f23d6c2ae11f117aae4a65e7 Mon Sep 17 00:00:00 2001 From: Adam Szmigin Date: Sat, 12 Aug 2023 15:39:29 +0100 Subject: [PATCH] Always specify cue adjusted --- src/djinterop/engine/v2/track_impl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/djinterop/engine/v2/track_impl.cpp b/src/djinterop/engine/v2/track_impl.cpp index a80472b..d3fed4e 100644 --- a/src/djinterop/engine/v2/track_impl.cpp +++ b/src/djinterop/engine/v2/track_impl.cpp @@ -116,8 +116,7 @@ track_row snapshot_to_row( quick_cues_blob quick_cues; quick_cues.default_main_cue = convert::write::main_cue(snapshot.main_cue); quick_cues.adjusted_main_cue = convert::write::main_cue(snapshot.main_cue); - quick_cues.is_main_cue_adjusted = - quick_cues.default_main_cue != quick_cues.adjusted_main_cue; + quick_cues.is_main_cue_adjusted = true; quick_cues.quick_cues = convert::write::hot_cues(snapshot.hot_cues); loops_blob loops = convert::write::loops(snapshot.loops); @@ -513,6 +512,7 @@ void track_impl::set_main_cue(stdx::optional sample_offset) auto quick_cues = track_.get_quick_cues(id()); quick_cues.adjusted_main_cue = sample_offset.value_or(0); quick_cues.default_main_cue = sample_offset.value_or(0); + quick_cues.is_main_cue_adjusted = true; track_.set_quick_cues(id(), quick_cues); }