Definition at line 16 of file ScrubState.cpp.
◆ ScrubQueue()
anonymous_namespace{ScrubState.cpp}::ScrubQueue::ScrubQueue |
( |
| ) |
|
|
inline |
◆ ~ScrubQueue()
anonymous_namespace{ScrubState.cpp}::ScrubQueue::~ScrubQueue |
( |
| ) |
|
|
inline |
◆ Get()
Definition at line 42 of file ScrubState.cpp.
44 {
45
46 startSample = endSample = duration = -1LL;
48
51 s0Init = llrint(
mRate *
52 std::max( message.options.minTime,
54
55
56
57
58 if ( !(message.options.isKeyboardScrubbing) ) {
63 }
64 }
65
66 if (
mStarted || message.options.isKeyboardScrubbing) {
69
70
73 ? s0.as_double() +
76 );
77 auto success =
78 newData.Init(
mData, s0, s1, inDuration, message.options,
mRate);
79 if (success)
81 else {
83 return;
84 }
86 };
87
89
91 if (
mStopped.load( std::memory_order_relaxed ) ) {
92
93
94 }
95 else if (
entry.mDuration > 0) {
96
97 startSample =
entry.mS0;
98 endSample =
entry.mS1;
99 duration =
entry.mDuration;
101 }
102 else if (
entry.mSilence > 0) {
103
104 startSample = endSample =
entry.mS1;
105 duration =
entry.mSilence;
107 }
108 }
static ProjectFileIORegistry::AttributeWriterEntry entry
Positions or offsets within audio files need a wide type.
TranslatableString Message(unsigned trackCount)
std::atomic< bool > mStopped
sampleCount mAccumulatedSeekDuration
MessageBuffer< Message > mMessage
References sampleCount::as_double(), ScrubbingOptions::bySpeed, anonymous_namespace{ScrubState.cpp}::ScrubQueue::Message::end, entry, anonymous_namespace{ScrubState.cpp}::ScrubQueue::Data::Init(), ScrubbingOptions::isKeyboardScrubbing, lrint, ScrubbingOptions::maxTime, min(), ScrubbingOptions::minTime, and anonymous_namespace{ScrubState.cpp}::ScrubQueue::Message::options.
◆ Init()
void anonymous_namespace{ScrubState.cpp}::ScrubQueue::Init |
( |
double |
t0, |
|
|
double |
rate, |
|
|
const ScrubbingOptions & |
options |
|
) |
| |
|
inline |
◆ LastTrackTime()
double anonymous_namespace{ScrubState.cpp}::ScrubQueue::LastTrackTime |
( |
| ) |
const |
|
inline |
◆ Started()
bool anonymous_namespace{ScrubState.cpp}::ScrubQueue::Started |
( |
| ) |
const |
|
inline |
◆ Stop()
void anonymous_namespace{ScrubState.cpp}::ScrubQueue::Stop |
( |
| ) |
|
|
inline |
◆ Update()
void anonymous_namespace{ScrubState.cpp}::ScrubQueue::Update |
( |
double |
end, |
|
|
const ScrubbingOptions & |
options |
|
) |
| |
|
inline |
◆ Instance
ScrubQueue anonymous_namespace{ScrubState.cpp}::ScrubQueue::Instance |
|
static |
◆ mAccumulatedSeekDuration
sampleCount anonymous_namespace{ScrubState.cpp}::ScrubQueue::mAccumulatedSeekDuration {} |
|
private |
◆ mData
Data anonymous_namespace{ScrubState.cpp}::ScrubQueue::mData |
|
private |
◆ mMessage
◆ mRate
double anonymous_namespace{ScrubState.cpp}::ScrubQueue::mRate {} |
|
private |
◆ mStarted
bool anonymous_namespace{ScrubState.cpp}::ScrubQueue::mStarted { false } |
|
private |
◆ mStartTime
double anonymous_namespace{ScrubState.cpp}::ScrubQueue::mStartTime {} |
|
private |
◆ mStopped
std::atomic<bool> anonymous_namespace{ScrubState.cpp}::ScrubQueue::mStopped { false } |
|
private |
The documentation for this struct was generated from the following file: