13namespace tracktion {
inline namespace engine
64 bool playing1 =
false, playing2 =
false;
65 BeatRange range1, range2;
100 PlayState status = PlayState::stopped;
112 State getState()
const {
return state.load(); }
113 void setState (State s) { state.store (std::move (s)); }
Wraps a seqlock to allow a thread-safe object with wait-free reads with respect to each other.
A handle used to control the launching of a clip.
std::optional< QueueState > getQueuedStatus() const
Returns the current queue state.
PlayState getPlayingStatus() const
Returns the current playback state.
std::optional< MonotonicBeatRange > getPlayedMonotonicRange() const
Returns the monotonic beat range this has been playing for.
std::optional< BeatRange > getPlayedRange() const
Returns the Edit beat range this has been playing for.
LaunchHandle()=default
Creates a LaunchHandle.
void stop(std::optional< MonotonicBeat >)
Stop playing, optionally at a given beat position.
std::optional< MonotonicBeat > getQueuedEventPosition() const
Returns the current queued event time.
void play(std::optional< MonotonicBeat >)
Start playing, optionally at a given beat position.
SplitStatus advance(const SyncRange &)
Advance the state.
Represents two beat ranges where the play state can be different in each.