#include <AuLib/AudioBase.h>
◆ const_iterator
const iterator for this class
◆ iterator
◆ AudioBase()
AudioBase constructor
nchnls - number of channels
vframes - number of frames in vector. This is set to next power-of-two no greater than the requested number of frames. Objects requiring arbitrary vector sizes should explicity re-size the vector using the resize_exact() method.
sr - sampling rate
◆ begin()
returns an iterator to the beginning
◆ cbegin()
returns a const iterator to the beginning
◆ cend()
returns a const iterator to the end
◆ end()
returns an iterator to the end
◆ error()
uint32_t AuLib::AudioBase::error |
( |
| ) |
const |
|
inline |
◆ error_message()
virtual const char* AuLib::AudioBase::error_message |
( |
| ) |
const |
|
inlinevirtual |
◆ nchnls()
uint32_t AuLib::AudioBase::nchnls |
( |
| ) |
const |
|
inline |
◆ operator const double *()
AuLib::AudioBase::operator const double * |
( |
| ) |
const |
|
inlineexplicit |
Conversion operator for const double*
◆ operator const std::vector< double > &()
AuLib::AudioBase::operator const std::vector< double > & |
( |
| ) |
const |
|
inline |
Conversion operator for const std::vector<double>&
◆ operator*=() [1/3]
virtual const AudioBase& AuLib::AudioBase::operator*= |
( |
double |
scal | ) |
|
|
inlinevirtual |
◆ operator*=() [2/3]
virtual const AudioBase& AuLib::AudioBase::operator*= |
( |
const double * |
sig | ) |
|
|
inlinevirtual |
◆ operator*=() [3/3]
Multiply the data vector by the vector from obj
◆ operator+=() [1/3]
virtual const AudioBase& AuLib::AudioBase::operator+= |
( |
double |
offs | ) |
|
|
inlinevirtual |
◆ operator+=() [2/3]
virtual const AudioBase& AuLib::AudioBase::operator+= |
( |
const double * |
sig | ) |
|
|
inlinevirtual |
◆ operator+=() [3/3]
Add a vector sig from obj to the data vector
◆ operator[]() [1/2]
double& AuLib::AudioBase::operator[] |
( |
uint32_t |
ndx | ) |
|
|
inline |
Get a reference of a single sample at sample pos ndx off the data vector
◆ operator[]() [2/2]
const double& AuLib::AudioBase::operator[] |
( |
uint32_t |
ndx | ) |
const |
|
inline |
Get a constant reference of a single sample at sample pos ndx off the data vector
◆ resize_exact()
uint32_t AuLib::AudioBase::resize_exact |
( |
uint32_t |
frames | ) |
|
|
inline |
Resize the vector to given number of frames, exactly. This is used to set the vector size to values other than power-of-two sizes, for dedicated applications where this is required. Clears the vector and returns the updated vector frame size.
◆ set() [1/4]
set the data vector to an input obj vector return the AudioBase obj reference
◆ set() [2/4]
const AudioBase& AuLib::AudioBase::set |
( |
const double * |
sig | ) |
|
|
inline |
set the data vector to a sig vector return the AudioBase obj reference
◆ set() [3/4]
const double* AuLib::AudioBase::set |
( |
double |
v | ) |
|
|
inline |
set the data vector to a value v return a pointer to the vector
◆ set() [4/4]
double AuLib::AudioBase::set |
( |
double |
v, |
|
|
uint32_t |
p |
|
) |
| |
|
inline |
set the data vector to a value v at pos p return the old (replaced) sample
◆ sr()
uint32_t AuLib::AudioBase::sr |
( |
| ) |
const |
|
inline |
◆ vector() [1/2]
const double* AuLib::AudioBase::vector |
( |
| ) |
const |
|
inline |
◆ vector() [2/2]
double AuLib::AudioBase::vector |
( |
uint32_t |
frndx, |
|
|
uint32_t |
chn |
|
) |
| const |
|
inline |
Get a single sample at frame ndx and channel chn off the data vector
◆ vframes() [1/2]
uint32_t AuLib::AudioBase::vframes |
( |
uint32_t |
frames | ) |
|
|
inline |
Set the current vector size in frames. Clears the vector and returns the updated vector frame size. Vector is resized if the requested frame size cannot be accommodated. Size is set to next power-of-two no greater than the requested number of frames.
◆ vframes() [2/2]
uint32_t AuLib::AudioBase::vframes |
( |
| ) |
const |
|
inline |
Get current vector size in frames
◆ vsamps()
uint32_t AuLib::AudioBase::vsamps |
( |
| ) |
const |
|
inline |
Get (max/allocated) vector size in samples
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const AudioBase & |
obj |
|
) |
| |
|
friend |
◆ operator>>
std::istream& operator>> |
( |
std::istream & |
is, |
|
|
AudioBase & |
obj |
|
) |
| |
|
friend |
◆ m_error
uint32_t AuLib::AudioBase::m_error |
|
protected |
◆ m_nchnls
uint32_t AuLib::AudioBase::m_nchnls |
|
protected |
◆ m_sr
double AuLib::AudioBase::m_sr |
|
protected |
◆ m_vector
std::vector<double> AuLib::AudioBase::m_vector |
|
protected |
◆ m_vframes
uint32_t AuLib::AudioBase::m_vframes |
|
protected |
The documentation for this class was generated from the following file: