Skip to content

Commit

Permalink
Always specify cue adjusted
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-smidge committed Aug 12, 2023
1 parent f25fb44 commit 6099928
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/djinterop/engine/v2/track_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -513,6 +512,7 @@ void track_impl::set_main_cue(stdx::optional<double> 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);
}

Expand Down

0 comments on commit 6099928

Please sign in to comment.