mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-10 16:43:33 +02:00
Increase time queue allocation by one entry...
... guarantee the gap between producer and consumer is more than one grain, so that the consumed entry is not still being produced. Fixes small errors in positioning of the green play head line.
This commit is contained in:
@@ -1922,7 +1922,7 @@ bool AudioIO::AllocateBuffers(
|
||||
|
||||
mPlaybackBuffers[i] =
|
||||
std::make_unique<RingBuffer>(floatSample, playbackBufferSize);
|
||||
const auto timeQueueSize =
|
||||
const auto timeQueueSize = 1 +
|
||||
(playbackBufferSize + TimeQueueGrainSize - 1)
|
||||
/ TimeQueueGrainSize;
|
||||
mTimeQueue.mData.reinit( timeQueueSize );
|
||||
|
Reference in New Issue
Block a user