mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added method ResamplingAudioSource::flushBuffers()
This commit is contained in:
parent
31087226bc
commit
008d3a36b6
3 changed files with 18 additions and 6 deletions
|
|
@ -182,6 +182,10 @@ void AudioTransportSource::setNextReadPosition (int64 newPosition)
|
|||
newPosition = (int64) (newPosition * sourceSampleRate / sampleRate);
|
||||
|
||||
positionableSource->setNextReadPosition (newPosition);
|
||||
|
||||
if (resamplerSource != nullptr)
|
||||
resamplerSource->flushBuffers();
|
||||
|
||||
inputStreamEOF = false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue