Definition at line 544 of file AudioIO.cpp.
◆ ScrubState()
AudioIoCallback::ScrubState::ScrubState |
( |
double |
t0, |
|
|
double |
rate, |
|
|
const ScrubbingOptions & |
options |
|
) |
| |
|
inline |
◆ ~ScrubState()
AudioIoCallback::ScrubState::~ScrubState |
( |
| ) |
|
|
inline |
◆ Get()
Definition at line 562 of file AudioIO.cpp.
566 startSample = endSample = duration = -1LL;
571 s0Init = llrint(
mRate *
572 std::max( message.options.minTime,
578 if ( !(message.options.isKeyboardScrubbing ||
579 message.options.isPlayingAtSpeed) ) {
587 if (
mStarted || message.options.isKeyboardScrubbing ||
588 message.options.isPlayingAtSpeed) {
600 newData.Init(
mData, s0, s1, inDuration, message.options,
mRate);
613 if (
mStopped.load( std::memory_order_relaxed ) ) {
617 else if (entry.mDuration > 0) {
619 startSample = entry.mS0;
620 endSample = entry.mS1;
621 duration = entry.mDuration;
624 else if (entry.mSilence > 0) {
626 startSample = endSample = entry.mS1;
627 duration = entry.mSilence;
References sampleCount::as_double(), ScrubbingOptions::bySpeed, AudioIoCallback::ScrubState::Message::end, AudioIoCallback::ScrubState::Data::Init(), ScrubbingOptions::isKeyboardScrubbing, ScrubbingOptions::isPlayingAtSpeed, lrint, mAccumulatedSeekDuration, ScrubbingOptions::maxTime, mData, AudioIoCallback::ScrubState::Data::mDuration, AudioIoCallback::ScrubState::Data::mGoal, min(), ScrubbingOptions::minTime, mMessage, mRate, AudioIoCallback::ScrubState::Data::mS0, AudioIoCallback::ScrubState::Data::mS1, AudioIoCallback::ScrubState::Data::mSilence, mStarted, mStartTime, mStopped, and AudioIoCallback::ScrubState::Message::options.
◆ Stop()
void AudioIoCallback::ScrubState::Stop |
( |
| ) |
|
|
inline |
◆ Update()
void AudioIoCallback::ScrubState::Update |
( |
double |
end, |
|
|
const ScrubbingOptions & |
options |
|
) |
| |
|
inline |
◆ mAccumulatedSeekDuration
sampleCount AudioIoCallback::ScrubState::mAccumulatedSeekDuration {} |
|
private |
◆ mData
Data AudioIoCallback::ScrubState::mData |
|
private |
◆ mMessage
◆ mRate
const double AudioIoCallback::ScrubState::mRate |
|
private |
◆ mStarted
bool AudioIoCallback::ScrubState::mStarted { false } |
|
private |
◆ mStartTime
double AudioIoCallback::ScrubState::mStartTime |
|
private |
◆ mStopped
std::atomic<bool> AudioIoCallback::ScrubState::mStopped { false } |
|
private |
The documentation for this struct was generated from the following file: