mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fix for BufferingAudioSource.
This commit is contained in:
parent
79090d1017
commit
427941e8c3
3 changed files with 19 additions and 3 deletions
|
|
@ -80,7 +80,7 @@ void BufferingAudioSource::prepareToPlay (int samplesPerBlockExpected, double sa
|
|||
while (bufferValidEnd - bufferValidStart < jmin (((int) sampleRate_) / 4,
|
||||
buffer.getNumSamples() / 2))
|
||||
{
|
||||
backgroundThread.addTimeSliceClient (this);
|
||||
backgroundThread.moveToFrontOfQueue (this);
|
||||
Thread::sleep (5);
|
||||
}
|
||||
}
|
||||
|
|
@ -168,8 +168,7 @@ void BufferingAudioSource::setNextReadPosition (int64 newPosition)
|
|||
const ScopedLock sl (bufferStartPosLock);
|
||||
|
||||
nextPlayPos = newPosition;
|
||||
|
||||
backgroundThread.addTimeSliceClient (this);
|
||||
backgroundThread.moveToFrontOfQueue (this);
|
||||
}
|
||||
|
||||
bool BufferingAudioSource::readNextBufferChunk()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue