mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Replaced AudioSampleBuffer::getSampleData with getReadPointer/getWritePointer methods (the old method is still available but deprecated). Apart from making code more explanatory and improving constness, these work with a new flag that keeps track of whether the buffer is clear, so that some operations can be elided when the data is known to be empty.
This commit is contained in:
parent
86d6018fb3
commit
fa21d2ac02
41 changed files with 373 additions and 194 deletions
|
|
@ -706,7 +706,7 @@ void AudioThumbnail::addBlock (const int64 startSample, const AudioSampleBuffer&
|
|||
|
||||
for (int chan = 0; chan < numChans; ++chan)
|
||||
{
|
||||
const float* const sourceData = incoming.getSampleData (chan, startOffsetInBuffer);
|
||||
const float* const sourceData = incoming.getReadPointer (chan, startOffsetInBuffer);
|
||||
MinMaxValue* const dest = thumbData + numToDo * chan;
|
||||
thumbChannels [chan] = dest;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue