25 #ifndef JUCE_AUDIOSAMPLEBUFFER_H_INCLUDED 26 #define JUCE_AUDIOSAMPLEBUFFER_H_INCLUDED 133 return channels [channelNumber];
147 return channels [channelNumber] + sampleIndex;
160 return channels [channelNumber];
174 return channels [channelNumber] + sampleIndex;
211 void setSize (
int newNumChannels,
213 bool keepExistingContent =
false,
214 bool clearExtraSpace =
false,
215 bool avoidReallocating =
false)
noexcept;
236 void setDataToReferTo (
float** dataToReferTo,
249 void clear (
int startSample,
257 void clear (
int channel,
275 float getSample (
int channel,
int sampleIndex)
const noexcept;
282 void setSample (
int destChannel,
int destSample,
float newValue)
noexcept;
289 void addSample (
int destChannel,
int destSample,
float valueToAdd)
noexcept;
296 void applyGain (
int channel,
306 void applyGain (
int startSample,
311 void applyGain (
float gain)
noexcept;
322 void applyGainRamp (
int channel,
337 void applyGainRamp (
int startSample,
355 void addFrom (
int destChannel,
359 int sourceStartSample,
361 float gainToApplyToSource = 1.0f)
noexcept;
374 void addFrom (
int destChannel,
378 float gainToApplyToSource = 1.0f)
noexcept;
391 void addFromWithRamp (
int destChannel,
409 void copyFrom (
int destChannel,
413 int sourceStartSample,
425 void copyFrom (
int destChannel,
440 void copyFrom (
int destChannel,
459 void copyFromWithRamp (
int destChannel,
478 float getMagnitude (
int channel,
483 float getMagnitude (
int startSample,
487 float getRMSLevel (
int channel,
492 void reverse (
int channel,
int startSample,
int numSamples)
const noexcept;
495 void reverse (
int startSample,
int numSamples)
const noexcept;
512 int numChannels, size;
513 size_t allocatedBytes;
516 float* preallocatedChannelSpace [32];
520 void allocateChannels (
float*
const*,
int offset);
526 #endif // JUCE_AUDIOSAMPLEBUFFER_H_INCLUDED Definition: juce_AudioSampleBuffer.h:34
float * getWritePointer(int channelNumber, int sampleIndex) noexcept
Definition: juce_AudioSampleBuffer.h:169
const float * getReadPointer(int channelNumber) const noexcept
Definition: juce_AudioSampleBuffer.h:130
#define noexcept
Definition: juce_CompilerSupport.h:141
const float ** getArrayOfReadPointers() const noexcept
Definition: juce_AudioSampleBuffer.h:182
bool isPositiveAndBelow(Type valueToTest, Type upperLimit) noexcept
Definition: juce_core.h:238
Definition: juce_Range.h:44
int getNumChannels() const noexcept
Definition: juce_AudioSampleBuffer.h:116
#define JUCE_API
Definition: juce_StandardHeader.h:139
const float * getReadPointer(int channelNumber, int sampleIndex) const noexcept
Definition: juce_AudioSampleBuffer.h:143
float * getWritePointer(int channelNumber) noexcept
Definition: juce_AudioSampleBuffer.h:156
bool hasBeenCleared() const noexcept
Definition: juce_AudioSampleBuffer.h:267
#define JUCE_LEAK_DETECTOR(OwnerClass)
Definition: juce_LeakedObjectDetector.h:141
float ** getArrayOfWritePointers() noexcept
Definition: juce_AudioSampleBuffer.h:189
int getNumSamples() const noexcept
Definition: juce_AudioSampleBuffer.h:121