Minimal and lightweight data-structure which contains a list of pointers to channels containing some kind of sample data. More...
#include <juce_AudioBlock.h>
Public Types | |
using | NumericType = typename SampleTypeHelpers::ElementType< SampleType >::Type |
Public Member Functions | |
AudioBlock () noexcept=default | |
Create a zero-sized AudioBlock. More... | |
template<typename OtherSampleType > | |
constexpr | AudioBlock (AudioBuffer< OtherSampleType > &buffer) noexcept |
Creates an AudioBlock that points to the data in an AudioBuffer. More... | |
template<typename OtherSampleType > | |
AudioBlock (AudioBuffer< OtherSampleType > &buffer, size_t startSampleIndex) noexcept | |
Creates an AudioBlock that points to the data in an AudioBuffer. More... | |
AudioBlock (const AudioBlock &other) noexcept=default | |
template<typename OtherSampleType , MayUseConvertingConstructor< OtherSampleType > = 0> | |
AudioBlock (const AudioBlock< OtherSampleType > &other) noexcept | |
template<typename OtherSampleType > | |
constexpr | AudioBlock (const AudioBuffer< OtherSampleType > &buffer) noexcept |
Creates an AudioBlock that points to the data in an AudioBuffer. More... | |
AudioBlock (HeapBlock< char > &heapBlockToUseForAllocation, size_t numberOfChannels, size_t numberOfSamples, size_t alignmentInBytes=defaultAlignment) noexcept | |
Allocates a suitable amount of space in a HeapBlock, and initialises this object to point into it. More... | |
constexpr | AudioBlock (SampleType *const *channelData, size_t numberOfChannels, size_t numberOfSamples) noexcept |
Creates an AudioBlock from a pointer to an array of channels. More... | |
constexpr | AudioBlock (SampleType *const *channelData, size_t numberOfChannels, size_t startSampleIndex, size_t numberOfSamples) noexcept |
Creates an AudioBlock from a pointer to an array of channels. More... | |
template<typename OtherSampleType > | |
const AudioBlock & | add (AudioBlock< OtherSampleType > src) const noexcept |
template<typename OtherSampleType > | |
AudioBlock & | add (AudioBlock< OtherSampleType > src) noexcept |
Adds the elements in the src block to the elements in this block. More... | |
const AudioBlock &JUCE_VECTOR_CALLTYPE | add (NumericType value) const noexcept |
AudioBlock &JUCE_VECTOR_CALLTYPE | add (NumericType value) noexcept |
Adds a fixed value to the elements in this block. More... | |
template<typename OtherSampleType > | |
const AudioBlock &JUCE_VECTOR_CALLTYPE | addProductOf (AudioBlock< OtherSampleType > src, NumericType factor) const noexcept |
template<typename OtherSampleType > | |
AudioBlock &JUCE_VECTOR_CALLTYPE | addProductOf (AudioBlock< OtherSampleType > src, NumericType factor) noexcept |
Multiplies each value in src by a fixed value and adds the result to this block. More... | |
template<typename Src1SampleType , typename Src2SampleType > | |
const AudioBlock & | addProductOf (AudioBlock< Src1SampleType > src1, AudioBlock< Src2SampleType > src2) const noexcept |
template<typename Src1SampleType , typename Src2SampleType > | |
AudioBlock & | addProductOf (AudioBlock< Src1SampleType > src1, AudioBlock< Src2SampleType > src2) noexcept |
Multiplies each value in srcA with the corresponding value in srcB and adds the result to this block. More... | |
void | addSample (int destChannel, int destSample, SampleType valueToAdd) const noexcept |
Adds a value to a sample in the buffer. More... | |
const AudioBlock & | clear () const noexcept |
AudioBlock & | clear () noexcept |
Clears the memory referenced by this AudioBlock. More... | |
template<typename OtherSampleType > | |
const AudioBlock & | copyFrom (const AudioBlock< OtherSampleType > &src) const noexcept |
template<typename OtherSampleType > | |
AudioBlock & | copyFrom (const AudioBlock< OtherSampleType > &src) noexcept |
Copies the values in src to this block. More... | |
template<typename OtherNumericType > | |
AudioBlock & | copyFrom (const AudioBuffer< OtherNumericType > &src, size_t srcPos=0, size_t dstPos=0, size_t numElements=std::numeric_limits< size_t >::max()) |
Copy the values from an AudioBuffer to this block. More... | |
template<typename OtherNumericType > | |
const AudioBlock & | copyFrom (const AudioBuffer< OtherNumericType > &src, size_t srcPos=0, size_t dstPos=0, size_t numElements=std::numeric_limits< size_t >::max()) const |
void | copyTo (AudioBuffer< typename std::remove_const< NumericType >::type > &dst, size_t srcPos=0, size_t dstPos=0, size_t numElements=std::numeric_limits< size_t >::max()) const |
Copies the values from this block to an AudioBuffer. More... | |
const AudioBlock &JUCE_VECTOR_CALLTYPE | fill (NumericType value) const noexcept |
AudioBlock &JUCE_VECTOR_CALLTYPE | fill (NumericType value) noexcept |
Fills the memory referenced by this AudioBlock with value. More... | |
Range< typename std::remove_const< NumericType >::type > | findMinAndMax () const noexcept |
Finds the minimum and maximum value of the buffer. More... | |
SampleType * | getChannelPointer (size_t channel) const noexcept |
Returns a raw pointer into one of the channels in this block. More... | |
constexpr size_t | getNumChannels () const noexcept |
Returns the number of channels referenced by this block. More... | |
constexpr size_t | getNumSamples () const noexcept |
Returns the number of samples referenced by this block. More... | |
SampleType | getSample (int channel, int sampleIndex) const noexcept |
Returns a sample from the buffer. More... | |
AudioBlock | getSingleChannelBlock (size_t channel) const noexcept |
Returns an AudioBlock that represents one of the channels in this block. More... | |
AudioBlock | getSubBlock (size_t newOffset) const noexcept |
Return a new AudioBlock pointing to a sub-block inside this block. More... | |
AudioBlock | getSubBlock (size_t newOffset, size_t newLength) const noexcept |
Return a new AudioBlock pointing to a sub-block inside this block. More... | |
AudioBlock | getSubsetChannelBlock (size_t channelStart, size_t numChannelsToUse) const noexcept |
Returns a subset of contiguous channels. More... | |
const AudioBlock & | move (size_t srcPos, size_t dstPos, size_t numElements=std::numeric_limits< size_t >::max()) const noexcept |
AudioBlock & | move (size_t srcPos, size_t dstPos, size_t numElements=std::numeric_limits< size_t >::max()) noexcept |
Move memory within this block from the position srcPos to the position dstPos. More... | |
template<typename OtherSampleType > | |
const AudioBlock & | multiplyBy (AudioBlock< OtherSampleType > src) const noexcept |
template<typename OtherSampleType > | |
AudioBlock & | multiplyBy (AudioBlock< OtherSampleType > src) noexcept |
Multiplies the elements in this block by the elements in the src block. More... | |
const AudioBlock &JUCE_VECTOR_CALLTYPE | multiplyBy (NumericType value) const noexcept |
AudioBlock &JUCE_VECTOR_CALLTYPE | multiplyBy (NumericType value) noexcept |
Multiplies the elements in this block by a fixed value. More... | |
template<typename OtherSampleType , typename SmoothingType > | |
const AudioBlock & | multiplyBy (SmoothedValue< OtherSampleType, SmoothingType > &value) const noexcept |
template<typename OtherSampleType , typename SmoothingType > | |
AudioBlock & | multiplyBy (SmoothedValue< OtherSampleType, SmoothingType > &value) noexcept |
Multiplies each channels of this block by a smoothly changing value. More... | |
const AudioBlock & | negate () const noexcept |
AudioBlock & | negate () noexcept |
Negates each value of this block. More... | |
template<typename OtherSampleType > | |
constexpr bool | operator!= (const AudioBlock< OtherSampleType > &other) const noexcept |
const AudioBlock & | operator*= (AudioBlock src) const noexcept |
AudioBlock & | operator*= (AudioBlock src) noexcept |
const AudioBlock &JUCE_VECTOR_CALLTYPE | operator*= (NumericType value) const noexcept |
AudioBlock &JUCE_VECTOR_CALLTYPE | operator*= (NumericType value) noexcept |
template<typename OtherSampleType , typename SmoothingType > | |
const AudioBlock & | operator*= (SmoothedValue< OtherSampleType, SmoothingType > &value) const noexcept |
template<typename OtherSampleType , typename SmoothingType > | |
AudioBlock & | operator*= (SmoothedValue< OtherSampleType, SmoothingType > &value) noexcept |
const AudioBlock & | operator+= (AudioBlock src) const noexcept |
AudioBlock & | operator+= (AudioBlock src) noexcept |
const AudioBlock &JUCE_VECTOR_CALLTYPE | operator+= (NumericType value) const noexcept |
AudioBlock &JUCE_VECTOR_CALLTYPE | operator+= (NumericType value) noexcept |
const AudioBlock & | operator-= (AudioBlock src) const noexcept |
AudioBlock & | operator-= (AudioBlock src) noexcept |
const AudioBlock &JUCE_VECTOR_CALLTYPE | operator-= (NumericType value) const noexcept |
AudioBlock &JUCE_VECTOR_CALLTYPE | operator-= (NumericType value) noexcept |
AudioBlock & | operator= (const AudioBlock &other) noexcept=default |
template<typename OtherSampleType , MayUseConvertingConstructor< OtherSampleType > = 0> | |
AudioBlock & | operator= (const AudioBlock< OtherSampleType > &other) noexcept |
template<typename OtherSampleType > | |
constexpr bool | operator== (const AudioBlock< OtherSampleType > &other) const noexcept |
template<typename OtherSampleType > | |
const AudioBlock & | replaceWithAbsoluteValueOf (AudioBlock< OtherSampleType > src) const noexcept |
template<typename OtherSampleType > | |
AudioBlock & | replaceWithAbsoluteValueOf (AudioBlock< OtherSampleType > src) noexcept |
Replaces the contents of this block with the absolute values of the src block. More... | |
template<typename OtherSampleType > | |
const AudioBlock &JUCE_VECTOR_CALLTYPE | replaceWithDifferenceOf (AudioBlock< OtherSampleType > src, NumericType value) const noexcept |
template<typename OtherSampleType > | |
AudioBlock &JUCE_VECTOR_CALLTYPE | replaceWithDifferenceOf (AudioBlock< OtherSampleType > src, NumericType value) noexcept |
Subtracts a fixed value from each source value and replaces the contents of this block. More... | |
template<typename Src1SampleType , typename Src2SampleType > | |
const AudioBlock & | replaceWithDifferenceOf (AudioBlock< Src1SampleType > src1, AudioBlock< Src2SampleType > src2) const noexcept |
template<typename Src1SampleType , typename Src2SampleType > | |
AudioBlock & | replaceWithDifferenceOf (AudioBlock< Src1SampleType > src1, AudioBlock< Src2SampleType > src2) noexcept |
Subtracts each source2 value from the corresponding source1 value and replaces the contents of this block. More... | |
template<typename Src1SampleType , typename Src2SampleType > | |
const AudioBlock & | replaceWithMaxOf (AudioBlock< Src1SampleType > src1, AudioBlock< Src2SampleType > src2) const noexcept |
template<typename Src1SampleType , typename Src2SampleType > | |
AudioBlock & | replaceWithMaxOf (AudioBlock< Src1SampleType > src1, AudioBlock< Src2SampleType > src2) noexcept |
Replaces each element of this block with the maximum of the corresponding element of the source arrays. More... | |
template<typename Src1SampleType , typename Src2SampleType > | |
const AudioBlock & | replaceWithMinOf (AudioBlock< Src1SampleType > src1, AudioBlock< Src2SampleType > src2) const noexcept |
template<typename Src1SampleType , typename Src2SampleType > | |
AudioBlock & | replaceWithMinOf (AudioBlock< Src1SampleType > src1, AudioBlock< Src2SampleType > src2) noexcept |
Replaces each element of this block with the minimum of the corresponding element of the source arrays. More... | |
template<typename OtherSampleType > | |
const AudioBlock & | replaceWithNegativeOf (AudioBlock< OtherSampleType > src) const noexcept |
template<typename OtherSampleType > | |
AudioBlock & | replaceWithNegativeOf (AudioBlock< OtherSampleType > src) noexcept |
Replaces the contents of this block with the negative of the values in the src block. More... | |
template<typename BlockSampleType , typename SmootherSampleType , typename SmoothingType > | |
const AudioBlock & | replaceWithProductOf (AudioBlock< BlockSampleType > src, SmoothedValue< SmootherSampleType, SmoothingType > &value) const noexcept |
template<typename BlockSampleType , typename SmootherSampleType , typename SmoothingType > | |
AudioBlock & | replaceWithProductOf (AudioBlock< BlockSampleType > src, SmoothedValue< SmootherSampleType, SmoothingType > &value) noexcept |
Replaces each channel of this block with the product of the src block and a smoothed value. More... | |
template<typename OtherSampleType > | |
const AudioBlock &JUCE_VECTOR_CALLTYPE | replaceWithProductOf (AudioBlock< OtherSampleType > src, NumericType value) const noexcept |
template<typename OtherSampleType > | |
AudioBlock &JUCE_VECTOR_CALLTYPE | replaceWithProductOf (AudioBlock< OtherSampleType > src, NumericType value) noexcept |
Replaces the elements in this block with the product of the elements in the source src block and a fixed value. More... | |
template<typename Src1SampleType , typename Src2SampleType > | |
const AudioBlock & | replaceWithProductOf (AudioBlock< Src1SampleType > src1, AudioBlock< Src2SampleType > src2) const noexcept |
template<typename Src1SampleType , typename Src2SampleType > | |
AudioBlock & | replaceWithProductOf (AudioBlock< Src1SampleType > src1, AudioBlock< Src2SampleType > src2) noexcept |
Replaces the elements in this block with the product of the elements in the src1 and scr2 blocks. More... | |
template<typename OtherSampleType > | |
const AudioBlock &JUCE_VECTOR_CALLTYPE | replaceWithSumOf (AudioBlock< OtherSampleType > src, NumericType value) const noexcept |
template<typename OtherSampleType > | |
AudioBlock &JUCE_VECTOR_CALLTYPE | replaceWithSumOf (AudioBlock< OtherSampleType > src, NumericType value) noexcept |
Adds a fixed value to each source value and replaces the contents of this block. More... | |
template<typename Src1SampleType , typename Src2SampleType > | |
const AudioBlock & | replaceWithSumOf (AudioBlock< Src1SampleType > src1, AudioBlock< Src2SampleType > src2) const noexcept |
template<typename Src1SampleType , typename Src2SampleType > | |
AudioBlock & | replaceWithSumOf (AudioBlock< Src1SampleType > src1, AudioBlock< Src2SampleType > src2) noexcept |
Adds each source1 value to the corresponding source2 value and replaces the contents of this block. More... | |
void | setSample (int destChannel, int destSample, SampleType newValue) const noexcept |
Modifies a sample in the buffer. More... | |
template<typename OtherSampleType > | |
const AudioBlock & | subtract (AudioBlock< OtherSampleType > src) const noexcept |
template<typename OtherSampleType > | |
AudioBlock & | subtract (AudioBlock< OtherSampleType > src) noexcept |
Subtracts the source values from the elements in this block. More... | |
const AudioBlock &JUCE_VECTOR_CALLTYPE | subtract (NumericType value) const noexcept |
AudioBlock &JUCE_VECTOR_CALLTYPE | subtract (NumericType value) noexcept |
Subtracts a fixed value from the elements in this block. More... | |
void | swap (AudioBlock &other) noexcept |
Static Public Member Functions | |
template<typename Src1SampleType , typename Src2SampleType , typename FunctionType > | |
static void | process (AudioBlock< Src1SampleType > inBlock, AudioBlock< Src2SampleType > outBlock, FunctionType &&function) |
Applies a function to each value in an input block, putting the result into an output block. More... | |
Private Types | |
using | ChannelCountType = unsigned int |
template<typename OtherSampleType > | |
using | MayUseConvertingConstructor = std::enable_if_t< std::is_same< std::remove_const_t< SampleType >, std::remove_const_t< OtherSampleType > >::value &&std::is_const< SampleType >::value &&! std::is_const< OtherSampleType >::value, int > |
Private Member Functions | |
template<typename OtherSampleType > | |
void | addInternal (AudioBlock< OtherSampleType > src) const noexcept |
void JUCE_VECTOR_CALLTYPE | addInternal (NumericType value) const noexcept |
template<typename OtherSampleType > | |
void JUCE_VECTOR_CALLTYPE | addProductOfInternal (AudioBlock< OtherSampleType > src, NumericType factor) const noexcept |
template<typename Src1SampleType , typename Src2SampleType > | |
void | addProductOfInternal (AudioBlock< Src1SampleType > src1, AudioBlock< Src2SampleType > src2) const noexcept |
void JUCE_VECTOR_CALLTYPE | clearInternal () const noexcept |
template<typename OtherSampleType > | |
void | copyFromInternal (const AudioBlock< OtherSampleType > &src) const noexcept |
template<typename OtherNumericType > | |
void | copyFromInternal (const AudioBuffer< OtherNumericType > &src, size_t srcPos, size_t dstPos, size_t numElements) const |
void JUCE_VECTOR_CALLTYPE | fillInternal (NumericType value) const noexcept |
NumericType * | getDataPointer (size_t channel) const noexcept |
void | moveInternal (size_t srcPos, size_t dstPos, size_t numElements=std::numeric_limits< size_t >::max()) const noexcept |
template<typename OtherSampleType > | |
void | multiplyByInternal (AudioBlock< OtherSampleType > src) const noexcept |
void JUCE_VECTOR_CALLTYPE | multiplyByInternal (NumericType value) const noexcept |
template<typename OtherSampleType , typename SmoothingType > | |
void | multiplyByInternal (SmoothedValue< OtherSampleType, SmoothingType > &value) const noexcept |
constexpr void | negateInternal () const noexcept |
template<typename OtherSampleType > | |
void | replaceWithAbsoluteValueOfInternal (AudioBlock< OtherSampleType > src) const noexcept |
template<typename OtherSampleType > | |
void JUCE_VECTOR_CALLTYPE | replaceWithDifferenceOfInternal (AudioBlock< OtherSampleType > src, NumericType value) const noexcept |
template<typename Src1SampleType , typename Src2SampleType > | |
void | replaceWithDifferenceOfInternal (AudioBlock< Src1SampleType > src1, AudioBlock< Src2SampleType > src2) const noexcept |
template<typename Src1SampleType , typename Src2SampleType > | |
void | replaceWithMaxOfInternal (AudioBlock< Src1SampleType > src1, AudioBlock< Src2SampleType > src2) const noexcept |
template<typename Src1SampleType , typename Src2SampleType > | |
void | replaceWithMinOfInternal (AudioBlock< Src1SampleType > src1, AudioBlock< Src2SampleType > src2) const noexcept |
template<typename OtherSampleType > | |
void | replaceWithNegativeOfInternal (AudioBlock< OtherSampleType > src) const noexcept |
template<typename BlockSampleType , typename SmootherSampleType , typename SmoothingType > | |
void | replaceWithProductOfInternal (AudioBlock< BlockSampleType > src, SmoothedValue< SmootherSampleType, SmoothingType > &value) const noexcept |
template<typename OtherSampleType > | |
void JUCE_VECTOR_CALLTYPE | replaceWithProductOfInternal (AudioBlock< OtherSampleType > src, NumericType value) const noexcept |
template<typename Src1SampleType , typename Src2SampleType > | |
void | replaceWithProductOfInternal (AudioBlock< Src1SampleType > src1, AudioBlock< Src2SampleType > src2) const noexcept |
template<typename OtherSampleType > | |
void JUCE_VECTOR_CALLTYPE | replaceWithSumOfInternal (AudioBlock< OtherSampleType > src, NumericType value) const noexcept |
template<typename Src1SampleType , typename Src2SampleType > | |
void | replaceWithSumOfInternal (AudioBlock< Src1SampleType > src1, AudioBlock< Src2SampleType > src2) const noexcept |
template<typename OtherSampleType > | |
void | subtractInternal (AudioBlock< OtherSampleType > src) const noexcept |
constexpr void JUCE_VECTOR_CALLTYPE | subtractInternal (NumericType value) const noexcept |
Private Attributes | |
SampleType *const * | channels |
ChannelCountType | numChannels = 0 |
size_t | numSamples = 0 |
size_t | startSample = 0 |
Static Private Attributes | |
static constexpr size_t | byteMask = (sizeFactor * sizeof (NumericType)) - 1 |
static constexpr size_t | defaultAlignment = sizeof (NumericType) |
static constexpr size_t | elementMask = sizeFactor - 1 |
static constexpr size_t | sizeFactor = sizeof (SampleType) / sizeof (NumericType) |
Friends | |
template<typename OtherSampleType > | |
class | AudioBlock |
Minimal and lightweight data-structure which contains a list of pointers to channels containing some kind of sample data.
This class doesn't own any of the data which it points to, it's simply a view into data that is owned elsewhere. You can construct one from some raw data that you've allocated yourself, or give it a HeapBlock to use, or give it an AudioBuffer which it can refer to, but in all cases the user is responsible for making sure that the data doesn't get deleted while there's still an AudioBlock using it.
@tags{DSP}
|
private |
|
private |
using juce::dsp::AudioBlock< SampleType >::NumericType = typename SampleTypeHelpers::ElementType<SampleType>::Type |
|
defaultnoexcept |
Create a zero-sized AudioBlock.
|
inlineconstexprnoexcept |
Creates an AudioBlock from a pointer to an array of channels.
AudioBlock does not copy nor own the memory pointed to by dataToUse. Therefore it is the user's responsibility to ensure that the memory is retained throughout the life-time of the AudioBlock and released when no longer needed.
|
inlineconstexprnoexcept |
Creates an AudioBlock from a pointer to an array of channels.
AudioBlock does not copy nor own the memory pointed to by dataToUse. Therefore it is the user's responsibility to ensure that the memory is retained throughout the life-time of the AudioBlock and released when no longer needed.
|
inlinenoexcept |
|
inlineconstexprnoexcept |
Creates an AudioBlock that points to the data in an AudioBuffer.
AudioBlock does not copy nor own the memory pointed to by dataToUse. Therefore it is the user's responsibility to ensure that the buffer is retained throughout the life-time of the AudioBlock without being modified.
|
inlineconstexprnoexcept |
Creates an AudioBlock that points to the data in an AudioBuffer.
AudioBlock does not copy nor own the memory pointed to by dataToUse. Therefore it is the user's responsibility to ensure that the buffer is retained throughout the life-time of the AudioBlock without being modified.
|
inlinenoexcept |
Creates an AudioBlock that points to the data in an AudioBuffer.
AudioBlock does not copy nor own the memory pointed to by dataToUse. Therefore it is the user's responsibility to ensure that the buffer is retained throughout the life-time of the AudioBlock without being modified.
|
defaultnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Adds the elements in the src block to the elements in this block.
|
inlinenoexcept |
|
inlinenoexcept |
Adds a fixed value to the elements in this block.
Referenced by juce::dsp::AudioBlock< const SampleType >::operator+=().
|
inlineprivatenoexcept |
|
inlineprivatenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Multiplies each value in src by a fixed value and adds the result to this block.
|
inlinenoexcept |
|
inlinenoexcept |
Multiplies each value in srcA with the corresponding value in srcB and adds the result to this block.
|
inlineprivatenoexcept |
Referenced by juce::dsp::AudioBlock< const SampleType >::addProductOf().
|
inlineprivatenoexcept |
|
inlinenoexcept |
Adds a value to a sample in the buffer.
The channel and index are not checked - they are expected to be in-range. If not, an assertion will be thrown, but in a release build, you're into 'undefined behaviour' territory.
|
inlinenoexcept |
|
inlinenoexcept |
Clears the memory referenced by this AudioBlock.
|
inlineprivatenoexcept |
Referenced by juce::dsp::AudioBlock< const SampleType >::clear().
|
inlinenoexcept |
|
inlinenoexcept |
Copies the values in src to this block.
|
inline |
Copy the values from an AudioBuffer to this block.
All indices and sizes are in this AudioBlock's units, i.e. if SampleType is a SIMDRegister then incrementing srcPos by one will increase the sample position in the AudioBuffer's units by a factor of SIMDRegister<SampleType>::SIMDNumElements.
|
inline |
|
inlineprivatenoexcept |
Referenced by juce::dsp::AudioBlock< const SampleType >::copyFrom().
|
inlineprivate |
|
inline |
Copies the values from this block to an AudioBuffer.
All indices and sizes are in this AudioBlock's units, i.e. if SampleType is a SIMDRegister then incrementing dstPos by one will increase the sample position in the AudioBuffer's units by a factor of SIMDRegister<SampleType>::SIMDNumElements.
|
inlinenoexcept |
|
inlinenoexcept |
Fills the memory referenced by this AudioBlock with value.
|
inlineprivatenoexcept |
Referenced by juce::dsp::AudioBlock< const SampleType >::fill().
|
inlinenoexcept |
Finds the minimum and maximum value of the buffer.
|
inlinenoexcept |
Returns a raw pointer into one of the channels in this block.
Referenced by juce::dsp::AudioBlock< const SampleType >::getDataPointer(), juce::dsp::AudioBlock< const SampleType >::moveInternal(), and juce::dsp::AudioBlock< const SampleType >::process().
|
inlineprivatenoexcept |
Referenced by juce::dsp::AudioBlock< const SampleType >::addInternal(), juce::dsp::AudioBlock< const SampleType >::addProductOfInternal(), juce::dsp::AudioBlock< const SampleType >::clearInternal(), juce::dsp::AudioBlock< const SampleType >::copyFromInternal(), juce::dsp::AudioBlock< const SampleType >::copyTo(), juce::dsp::AudioBlock< const SampleType >::fillInternal(), juce::dsp::AudioBlock< const SampleType >::findMinAndMax(), juce::dsp::AudioBlock< const SampleType >::multiplyByInternal(), juce::dsp::AudioBlock< const SampleType >::replaceWithAbsoluteValueOfInternal(), juce::dsp::AudioBlock< const SampleType >::replaceWithDifferenceOfInternal(), juce::dsp::AudioBlock< const SampleType >::replaceWithMaxOfInternal(), juce::dsp::AudioBlock< const SampleType >::replaceWithMinOfInternal(), juce::dsp::AudioBlock< const SampleType >::replaceWithNegativeOfInternal(), juce::dsp::AudioBlock< const SampleType >::replaceWithProductOfInternal(), juce::dsp::AudioBlock< const SampleType >::replaceWithSumOfInternal(), and juce::dsp::AudioBlock< const SampleType >::subtractInternal().
|
inlineconstexprnoexcept |
Returns the number of channels referenced by this block.
Referenced by juce::dsp::AudioBlock< const SampleType >::process().
|
inlineconstexprnoexcept |
Returns the number of samples referenced by this block.
Referenced by juce::dsp::AudioBlock< const SampleType >::getSubBlock(), and juce::dsp::AudioBlock< const SampleType >::process().
|
inlinenoexcept |
Returns a sample from the buffer.
The channel and index are not checked - they are expected to be in-range. If not, an assertion will be thrown, but in a release build, you're into 'undefined behaviour' territory.
|
inlinenoexcept |
Returns an AudioBlock that represents one of the channels in this block.
|
inlinenoexcept |
Return a new AudioBlock pointing to a sub-block inside this block.
This function does not copy the memory and you must ensure that the original memory pointed to by the receiver remains valid through-out the life-time of the returned sub-block.
newOffset | The index of an element inside the block which will will become the first element of the return value. The return value will include all subsequent elements of the receiver. |
|
inlinenoexcept |
Return a new AudioBlock pointing to a sub-block inside this block.
This function does not copy the memory and you must ensure that the original memory pointed to by the receiver remains valid through-out the life-time of the returned sub-block.
newOffset | The index of an element inside the receiver which will will become the first element of the return value. |
newLength | The number of elements of the newly created sub-block. |
Referenced by juce::dsp::AudioBlock< const SampleType >::getSubBlock(), juce::dsp::Phaser< SampleType >::process(), and juce::dsp::Chorus< SampleType >::process().
|
inlinenoexcept |
Returns a subset of contiguous channels.
channelStart | First channel of the subset |
numChannelsToUse | Count of channels in the subset |
|
inlinenoexcept |
|
inlinenoexcept |
Move memory within this block from the position srcPos to the position dstPos.
If numElements is not specified then move will move the maximum amount of memory.
|
inlineprivatenoexcept |
Referenced by juce::dsp::AudioBlock< const SampleType >::move().
|
inlinenoexcept |
|
inlinenoexcept |
Multiplies the elements in this block by the elements in the src block.
|
inlinenoexcept |
|
inlinenoexcept |
Multiplies the elements in this block by a fixed value.
Referenced by juce::dsp::AudioBlock< const SampleType >::operator*=().
|
inlinenoexcept |
|
inlinenoexcept |
Multiplies each channels of this block by a smoothly changing value.
|
inlineprivatenoexcept |
|
inlineprivatenoexcept |
|
inlineprivatenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Negates each value of this block.
|
inlineconstexprprivatenoexcept |
Referenced by juce::dsp::AudioBlock< const SampleType >::negate().
|
inlineconstexprnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
defaultnoexcept |
|
inlinenoexcept |
|
inlineconstexprnoexcept |
|
inlinestatic |
Applies a function to each value in an input block, putting the result into an output block.
The function supplied must take a SampleType as its parameter, and return a SampleType. The two blocks must have the same number of channels and samples.
Referenced by juce::dsp::WaveShaper< FloatType, Function >::process().
|
inlinenoexcept |
|
inlinenoexcept |
Replaces the contents of this block with the absolute values of the src block.
|
inlineprivatenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Subtracts a fixed value from each source value and replaces the contents of this block.
|
inlinenoexcept |
|
inlinenoexcept |
Subtracts each source2 value from the corresponding source1 value and replaces the contents of this block.
|
inlineprivatenoexcept |
|
inlineprivatenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Replaces each element of this block with the maximum of the corresponding element of the source arrays.
|
inlineprivatenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Replaces each element of this block with the minimum of the corresponding element of the source arrays.
|
inlineprivatenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Replaces the contents of this block with the negative of the values in the src block.
|
inlineprivatenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Replaces each channel of this block with the product of the src block and a smoothed value.
|
inlinenoexcept |
|
inlinenoexcept |
Replaces the elements in this block with the product of the elements in the source src block and a fixed value.
|
inlinenoexcept |
|
inlinenoexcept |
Replaces the elements in this block with the product of the elements in the src1 and scr2 blocks.
|
inlineprivatenoexcept |
|
inlineprivatenoexcept |
|
inlineprivatenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Adds a fixed value to each source value and replaces the contents of this block.
|
inlinenoexcept |
|
inlinenoexcept |
Adds each source1 value to the corresponding source2 value and replaces the contents of this block.
|
inlineprivatenoexcept |
|
inlineprivatenoexcept |
|
inlinenoexcept |
Modifies a sample in the buffer.
The channel and index are not checked - they are expected to be in-range. If not, an assertion will be thrown, but in a release build, you're into 'undefined behaviour' territory.
|
inlinenoexcept |
|
inlinenoexcept |
Subtracts the source values from the elements in this block.
|
inlinenoexcept |
|
inlinenoexcept |
Subtracts a fixed value from the elements in this block.
Referenced by juce::dsp::AudioBlock< const SampleType >::operator-=().
|
inlineprivatenoexcept |
|
inlineconstexprprivatenoexcept |
Referenced by juce::dsp::AudioBlock< const SampleType >::subtract().
|
inlinenoexcept |
Referenced by juce::dsp::AudioBlock< const SampleType >::operator=().
|
staticconstexprprivate |
|
private |
Referenced by juce::dsp::AudioBlock< const SampleType >::addSample(), juce::dsp::AudioBlock< const SampleType >::AudioBlock(), juce::dsp::AudioBlock< const SampleType >::getChannelPointer(), juce::dsp::AudioBlock< const SampleType >::getSample(), juce::dsp::AudioBlock< const SampleType >::getSingleChannelBlock(), juce::dsp::AudioBlock< const SampleType >::getSubBlock(), juce::dsp::AudioBlock< const SampleType >::getSubsetChannelBlock(), juce::dsp::AudioBlock< const SampleType >::operator==(), juce::dsp::AudioBlock< const SampleType >::setSample(), and juce::dsp::AudioBlock< const SampleType >::swap().
|
staticconstexprprivate |
|
staticconstexprprivate |
Referenced by juce::dsp::AudioBlock< const SampleType >::AudioBlock().
|
private |
Referenced by juce::dsp::AudioBlock< const SampleType >::addInternal(), juce::dsp::AudioBlock< const SampleType >::addProductOfInternal(), juce::dsp::AudioBlock< const SampleType >::addSample(), juce::dsp::AudioBlock< const SampleType >::AudioBlock(), juce::dsp::AudioBlock< const SampleType >::clearInternal(), juce::dsp::AudioBlock< const SampleType >::copyFromInternal(), juce::dsp::AudioBlock< const SampleType >::copyTo(), juce::dsp::AudioBlock< const SampleType >::fillInternal(), juce::dsp::AudioBlock< const SampleType >::findMinAndMax(), juce::dsp::AudioBlock< const SampleType >::getChannelPointer(), juce::dsp::AudioBlock< const SampleType >::getNumChannels(), juce::dsp::AudioBlock< const SampleType >::getSample(), juce::dsp::AudioBlock< const SampleType >::getSingleChannelBlock(), juce::dsp::AudioBlock< const SampleType >::getSubBlock(), juce::dsp::AudioBlock< const SampleType >::getSubsetChannelBlock(), juce::dsp::AudioBlock< const SampleType >::moveInternal(), juce::dsp::AudioBlock< const SampleType >::multiplyByInternal(), juce::dsp::AudioBlock< const SampleType >::operator==(), juce::dsp::AudioBlock< const SampleType >::replaceWithAbsoluteValueOfInternal(), juce::dsp::AudioBlock< const SampleType >::replaceWithDifferenceOfInternal(), juce::dsp::AudioBlock< const SampleType >::replaceWithMaxOfInternal(), juce::dsp::AudioBlock< const SampleType >::replaceWithMinOfInternal(), juce::dsp::AudioBlock< const SampleType >::replaceWithNegativeOfInternal(), juce::dsp::AudioBlock< const SampleType >::replaceWithProductOfInternal(), juce::dsp::AudioBlock< const SampleType >::replaceWithSumOfInternal(), juce::dsp::AudioBlock< const SampleType >::setSample(), juce::dsp::AudioBlock< const SampleType >::subtractInternal(), and juce::dsp::AudioBlock< const SampleType >::swap().
|
private |
Referenced by juce::dsp::AudioBlock< const SampleType >::addInternal(), juce::dsp::AudioBlock< const SampleType >::addProductOfInternal(), juce::dsp::AudioBlock< const SampleType >::addSample(), juce::dsp::AudioBlock< const SampleType >::clearInternal(), juce::dsp::AudioBlock< const SampleType >::copyFromInternal(), juce::dsp::AudioBlock< const SampleType >::copyTo(), juce::dsp::AudioBlock< const SampleType >::fillInternal(), juce::dsp::AudioBlock< const SampleType >::findMinAndMax(), juce::dsp::AudioBlock< const SampleType >::getChannelPointer(), juce::dsp::AudioBlock< const SampleType >::getNumSamples(), juce::dsp::AudioBlock< const SampleType >::getSample(), juce::dsp::AudioBlock< const SampleType >::getSingleChannelBlock(), juce::dsp::AudioBlock< const SampleType >::getSubBlock(), juce::dsp::AudioBlock< const SampleType >::getSubsetChannelBlock(), juce::dsp::AudioBlock< const SampleType >::moveInternal(), juce::dsp::AudioBlock< const SampleType >::multiplyByInternal(), juce::dsp::AudioBlock< const SampleType >::operator==(), juce::dsp::AudioBlock< const SampleType >::replaceWithAbsoluteValueOfInternal(), juce::dsp::AudioBlock< const SampleType >::replaceWithDifferenceOfInternal(), juce::dsp::AudioBlock< const SampleType >::replaceWithMaxOfInternal(), juce::dsp::AudioBlock< const SampleType >::replaceWithMinOfInternal(), juce::dsp::AudioBlock< const SampleType >::replaceWithNegativeOfInternal(), juce::dsp::AudioBlock< const SampleType >::replaceWithProductOfInternal(), juce::dsp::AudioBlock< const SampleType >::replaceWithSumOfInternal(), juce::dsp::AudioBlock< const SampleType >::setSample(), juce::dsp::AudioBlock< const SampleType >::subtractInternal(), and juce::dsp::AudioBlock< const SampleType >::swap().
|
staticconstexprprivate |
Referenced by juce::dsp::AudioBlock< const SampleType >::addInternal(), juce::dsp::AudioBlock< const SampleType >::addProductOfInternal(), juce::dsp::AudioBlock< const SampleType >::clearInternal(), juce::dsp::AudioBlock< const SampleType >::copyFromInternal(), juce::dsp::AudioBlock< const SampleType >::copyTo(), juce::dsp::AudioBlock< const SampleType >::fillInternal(), juce::dsp::AudioBlock< const SampleType >::findMinAndMax(), juce::dsp::AudioBlock< const SampleType >::multiplyByInternal(), juce::dsp::AudioBlock< const SampleType >::replaceWithAbsoluteValueOfInternal(), juce::dsp::AudioBlock< const SampleType >::replaceWithDifferenceOfInternal(), juce::dsp::AudioBlock< const SampleType >::replaceWithMaxOfInternal(), juce::dsp::AudioBlock< const SampleType >::replaceWithMinOfInternal(), juce::dsp::AudioBlock< const SampleType >::replaceWithNegativeOfInternal(), juce::dsp::AudioBlock< const SampleType >::replaceWithProductOfInternal(), juce::dsp::AudioBlock< const SampleType >::replaceWithSumOfInternal(), and juce::dsp::AudioBlock< const SampleType >::subtractInternal().
|
private |
Referenced by juce::dsp::AudioBlock< const SampleType >::addSample(), juce::dsp::AudioBlock< const SampleType >::AudioBlock(), juce::dsp::AudioBlock< const SampleType >::getChannelPointer(), juce::dsp::AudioBlock< const SampleType >::getSample(), juce::dsp::AudioBlock< const SampleType >::getSingleChannelBlock(), juce::dsp::AudioBlock< const SampleType >::getSubBlock(), juce::dsp::AudioBlock< const SampleType >::getSubsetChannelBlock(), juce::dsp::AudioBlock< const SampleType >::operator==(), juce::dsp::AudioBlock< const SampleType >::setSample(), and juce::dsp::AudioBlock< const SampleType >::swap().