mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-15 16:17:41 +02:00
move some functions
This commit is contained in:
parent
1bf192e5b3
commit
9727968b94
@ -565,15 +565,6 @@ struct AudioIO::ScrubQueue
|
|||||||
dd.Cancel();
|
dd.Cancel();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
~ScrubQueue() {}
|
|
||||||
|
|
||||||
double LastTimeInQueue() const
|
|
||||||
{
|
|
||||||
// Needed by the main thread sometimes
|
|
||||||
wxMutexLocker locker(mUpdating);
|
|
||||||
const Entry &previous = mEntries[(mLeadingIdx + Size - 1) % Size];
|
|
||||||
return previous.mS1.as_double() / mRate;
|
|
||||||
}
|
|
||||||
|
|
||||||
// This is for avoiding deadlocks while starting a scrub:
|
// This is for avoiding deadlocks while starting a scrub:
|
||||||
// Audio stream needs to be unblocked
|
// Audio stream needs to be unblocked
|
||||||
@ -735,6 +726,16 @@ struct AudioIO::ScrubQueue
|
|||||||
mLastTransformerTimeMillis = now;
|
mLastTransformerTimeMillis = now;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
double LastTimeInQueue() const
|
||||||
|
{
|
||||||
|
// Needed by the main thread sometimes
|
||||||
|
wxMutexLocker locker(mUpdating);
|
||||||
|
const Entry &previous = mEntries[(mLeadingIdx + Size - 1) % Size];
|
||||||
|
return previous.mS1.as_double() / mRate;
|
||||||
|
}
|
||||||
|
|
||||||
|
~ScrubQueue() {}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
struct Entry
|
struct Entry
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user