mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
This commit is contained in:
parent
346c3de206
commit
a082f55e32
1 changed files with 3 additions and 2 deletions
|
|
@ -108,12 +108,13 @@ void AudioFilterStreamer::audioDeviceAboutToStart (AudioIODevice* device)
|
|||
isPlaying = true;
|
||||
|
||||
emptyBuffer.setSize (1 + filter.getNumOutputChannels(),
|
||||
jmax (2048, device->getCurrentBlockSizeSamples() * 2));
|
||||
jmax (2048, device->getCurrentBufferSizeSamples() * 2));
|
||||
emptyBuffer.clear();
|
||||
|
||||
midiCollector.reset (sampleRate);
|
||||
|
||||
filter.prepareToPlay (sampleRate, numSamplesPerBlock);
|
||||
filter.prepareToPlay (device->getCurrentSampleRate(),
|
||||
device->getCurrentBufferSizeSamples());
|
||||
}
|
||||
|
||||
void AudioFilterStreamer::audioDeviceStopped()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue