Audacity 3.2.0
|
#include <SamplesFloat.h>
Public Member Functions | |
~SamplesFloat () | |
void | setSize (int32_t numChannels, int32_t samples) |
int32_t | getNumChannels () const |
int32_t | getNumSamples () const |
float ** | getPtrs () |
T * | getPtr (int32_t channel) |
const T * | getPtr (int32_t channel) const |
void | assignSamples (int32_t channel, const T *input) |
void | assignSamples (const SamplesFloat &rhs) |
void | zeroOut () |
Private Member Functions | |
void | alloc (int32_t channel, int32_t samples) |
void | dealloc (int32_t channel) |
Private Attributes | |
int32_t | num_channels {0} |
int32_t | num_samples {0} |
std::vector< T * > | data |
Definition at line 12 of file SamplesFloat.h.
|
inline |
Definition at line 15 of file SamplesFloat.h.
References staffpad::SamplesFloat< T >::dealloc(), and staffpad::SamplesFloat< T >::num_channels.
|
inlineprivate |
Definition at line 91 of file SamplesFloat.h.
References staffpad::audio::simd::aligned_malloc(), staffpad::SamplesFloat< T >::data, staffpad::SamplesFloat< T >::dealloc(), and staffpad::SamplesFloat< T >::num_channels.
Referenced by staffpad::SamplesFloat< T >::setSize().
|
inline |
Definition at line 69 of file SamplesFloat.h.
References staffpad::vo::copy(), staffpad::SamplesFloat< T >::data, staffpad::SamplesFloat< T >::getPtr(), staffpad::SamplesFloat< T >::num_channels, and staffpad::SamplesFloat< T >::num_samples.
|
inline |
Definition at line 62 of file SamplesFloat.h.
References staffpad::vo::copy(), staffpad::SamplesFloat< T >::data, staffpad::SamplesFloat< T >::num_channels, and staffpad::SamplesFloat< T >::num_samples.
Referenced by staffpad::audio::FourierTransform::inverseReal().
|
inlineprivate |
Definition at line 101 of file SamplesFloat.h.
References staffpad::audio::simd::aligned_free(), staffpad::SamplesFloat< T >::data, and staffpad::SamplesFloat< T >::num_channels.
Referenced by staffpad::SamplesFloat< T >::alloc(), staffpad::SamplesFloat< T >::setSize(), and staffpad::SamplesFloat< T >::~SamplesFloat().
|
inline |
Definition at line 33 of file SamplesFloat.h.
References staffpad::SamplesFloat< T >::num_channels.
Referenced by staffpad::audio::FourierTransform::forwardReal(), and staffpad::audio::FourierTransform::inverseReal().
|
inline |
Definition at line 38 of file SamplesFloat.h.
References staffpad::SamplesFloat< T >::num_samples.
Referenced by staffpad::audio::FourierTransform::forwardReal(), and staffpad::audio::FourierTransform::inverseReal().
|
inline |
Definition at line 48 of file SamplesFloat.h.
References staffpad::SamplesFloat< T >::data, and staffpad::SamplesFloat< T >::num_channels.
Referenced by staffpad::SamplesFloat< T >::assignSamples(), staffpad::audio::FourierTransform::forwardReal(), staffpad::audio::FourierTransform::inverseReal(), and FormantShifter::Process().
|
inline |
Definition at line 55 of file SamplesFloat.h.
References staffpad::SamplesFloat< T >::data, and staffpad::SamplesFloat< T >::num_channels.
|
inline |
Definition at line 43 of file SamplesFloat.h.
References staffpad::SamplesFloat< T >::data.
|
inline |
Definition at line 21 of file SamplesFloat.h.
References staffpad::SamplesFloat< T >::alloc(), staffpad::SamplesFloat< T >::data, staffpad::SamplesFloat< T >::dealloc(), staffpad::SamplesFloat< T >::num_channels, and staffpad::SamplesFloat< T >::num_samples.
Referenced by FormantShifter::Reset().
|
inline |
Definition at line 80 of file SamplesFloat.h.
References staffpad::SamplesFloat< T >::data, staffpad::SamplesFloat< T >::num_channels, staffpad::SamplesFloat< T >::num_samples, and staffpad::vo::setToZero().
|
private |
Definition at line 89 of file SamplesFloat.h.
Referenced by staffpad::SamplesFloat< T >::alloc(), staffpad::SamplesFloat< T >::assignSamples(), staffpad::SamplesFloat< T >::dealloc(), staffpad::SamplesFloat< T >::getPtr(), staffpad::SamplesFloat< T >::getPtrs(), staffpad::SamplesFloat< T >::setSize(), and staffpad::SamplesFloat< T >::zeroOut().
|
private |
Definition at line 87 of file SamplesFloat.h.
Referenced by staffpad::SamplesFloat< T >::alloc(), staffpad::SamplesFloat< T >::assignSamples(), staffpad::SamplesFloat< T >::dealloc(), staffpad::SamplesFloat< T >::getNumChannels(), staffpad::SamplesFloat< T >::getPtr(), staffpad::SamplesFloat< T >::setSize(), staffpad::SamplesFloat< T >::zeroOut(), and staffpad::SamplesFloat< T >::~SamplesFloat().
|
private |
Definition at line 88 of file SamplesFloat.h.
Referenced by staffpad::SamplesFloat< T >::assignSamples(), staffpad::SamplesFloat< T >::getNumSamples(), staffpad::SamplesFloat< T >::setSize(), and staffpad::SamplesFloat< T >::zeroOut().