mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-02 03:20:06 +00:00
Minor optimisation in AudioSampleBuffer
This commit is contained in:
parent
d130a8e338
commit
7e51302069
1 changed files with 5 additions and 2 deletions
|
|
@ -116,8 +116,11 @@ void AudioSampleBuffer::setDataToReferTo (float** dataToReferTo,
|
|||
jassert (dataToReferTo != nullptr);
|
||||
jassert (newNumChannels >= 0 && newNumSamples >= 0);
|
||||
|
||||
allocatedBytes = 0;
|
||||
allocatedData.free();
|
||||
if (allocatedBytes != 0)
|
||||
{
|
||||
allocatedBytes = 0;
|
||||
allocatedData.free();
|
||||
}
|
||||
|
||||
numChannels = newNumChannels;
|
||||
size = newNumSamples;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue