Keep the bed positions in the Rosella path and across HRTF resets
ci / ubuntu-latest (push) Failing after 14s
ci / macos-latest (push) Canceled after 0s
ci / windows-latest (push) Canceled after 0s
ci / release (push) Canceled after 0s

This commit is contained in:
TheM14 committed 2026-10-30 05:23:04 +08:00
1 parent 075ef60afa
commit 8e688d496e
6 files changed
+37 -4

No files matched your search

+17
View File
@@ -60,6 +60,23 @@ public:
fixed_xyz_[object_index - 1][2] = position[2];
}
// Drops the OAMD state and every transition but keeps the fixed bed positions:
// they describe the content, not the playback position.
void reset() {
state_.reset();
for (int index = 0; index < kTimelineObjects; ++index) {
tracks_[index] = ObjectPositionTrack();
has_previous_[index] = false;
for (int axis = 0; axis < 3; ++axis) {
previous_targets_[index][axis] = 0.0;
}
}
initialized_ = false;
payload_count_ = 0;
transition_count_ = 0;
last_coded_event_sample_ = -1;
}
std::uint64_t payload_count() const { return payload_count_; }
std::uint64_t transition_count() const { return transition_count_; }
bool initialized() const { return initialized_; }