mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added a template to allow the HeapBlock class to be given signed ints or other types that are not size_t for its size parameters
This commit is contained in:
parent
13ccdf9411
commit
369d59f656
32 changed files with 189 additions and 199 deletions
|
|
@ -52,14 +52,14 @@ void ResamplingAudioSource::prepareToPlay (int samplesPerBlockExpected, double s
|
|||
{
|
||||
const SpinLock::ScopedLockType sl (ratioLock);
|
||||
|
||||
const int scaledBlockSize = roundToInt (samplesPerBlockExpected * ratio);
|
||||
auto scaledBlockSize = roundToInt (samplesPerBlockExpected * ratio);
|
||||
input->prepareToPlay (scaledBlockSize, sampleRate * ratio);
|
||||
|
||||
buffer.setSize (numChannels, scaledBlockSize + 32);
|
||||
|
||||
filterStates.calloc ((size_t) numChannels);
|
||||
srcBuffers.calloc ((size_t) numChannels);
|
||||
destBuffers.calloc ((size_t) numChannels);
|
||||
filterStates.calloc (numChannels);
|
||||
srcBuffers.calloc (numChannels);
|
||||
destBuffers.calloc (numChannels);
|
||||
createLowPass (ratio);
|
||||
|
||||
flushBuffers();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue