AuLib  1.0beta
Public Member Functions | Protected Attributes | List of all members
AuLib::Chn Class Reference

#include <AuLib/Chn.h>

Inheritance diagram for AuLib::Chn:
Inheritance graph
[legend]
Collaboration diagram for AuLib::Chn:
Collaboration graph
[legend]

Public Member Functions

 Chn (uint32_t channel=1, uint32_t vframes=def_vframes)
 
const double * process (const double *sig, uint32_t nchnls)
 
const double * process (const double *sig, uint32_t chn, uint32_t nchnls)
 
const Chnprocess (const AudioBase &obj)
 
const Chnprocess (const AudioBase &obj, uint32_t chn)
 
const Chnoperator() (const AudioBase &obj)
 
const Chnoperator() (const AudioBase &obj, uint32_t chn)
 
- Public Member Functions inherited from AuLib::AudioBase
 AudioBase (uint32_t nchnls=def_nchnls, uint32_t vframes=def_vframes, double sr=def_sr)
 
virtual const AudioBaseoperator*= (double scal)
 
virtual const AudioBaseoperator*= (const double *sig)
 
virtual const AudioBaseoperator*= (const AudioBase &obj)
 
virtual const AudioBaseoperator+= (double offs)
 
virtual const AudioBaseoperator+= (const double *sig)
 
virtual const AudioBaseoperator+= (const AudioBase &obj)
 
double & operator[] (uint32_t ndx)
 
const double & operator[] (uint32_t ndx) const
 
iterator begin ()
 
iterator end ()
 
const_iterator cbegin () const
 
const_iterator cend () const
 
const AudioBaseset (const AudioBase &obj)
 
const AudioBaseset (const double *sig)
 
const double * set (double v)
 
double set (double v, uint32_t p)
 
 operator const std::vector< double > & () const
 
 operator const double * () const
 
const double * vector () const
 
double vector (uint32_t frndx, uint32_t chn) const
 
uint32_t vframes (uint32_t frames)
 
uint32_t resize_exact (uint32_t frames)
 
uint32_t vframes () const
 
uint32_t vsamps () const
 
uint32_t nchnls () const
 
uint32_t sr () const
 
uint32_t error () const
 
virtual const char * error_message () const
 

Protected Attributes

uint32_t m_chn
 
- Protected Attributes inherited from AuLib::AudioBase
uint32_t m_nchnls
 
uint32_t m_vframes
 
std::vector< double > m_vector
 
double m_sr
 
uint32_t m_error
 

Additional Inherited Members

- Public Types inherited from AuLib::AudioBase
typedef std::vector< double >::iterator iterator
 
typedef std::vector< double >::const_iterator const_iterator
 

Detailed Description

Extracts a single channel from a multichannel interleaved input

Constructor & Destructor Documentation

◆ Chn()

AuLib::Chn::Chn ( uint32_t  channel = 1,
uint32_t  vframes = def_vframes 
)
inline

Chn constructor

channel - channel to extract
vframes - vector size
sr - sampling rate

Member Function Documentation

◆ operator()() [1/2]

const Chn& AuLib::Chn::operator() ( const AudioBase obj)
inline

operator(a) convenience method

◆ operator()() [2/2]

const Chn& AuLib::Chn::operator() ( const AudioBase obj,
uint32_t  chn 
)
inline

operator(a,b) convenience method

◆ process() [1/4]

const double* AuLib::Chn::process ( const double *  sig,
uint32_t  nchnls 
)
inline

extracts a channel from sig holding nchnls channels

◆ process() [2/4]

const double* AuLib::Chn::process ( const double *  sig,
uint32_t  chn,
uint32_t  nchnls 
)
inline

extracts channel chn from sig holding nchnls channels

◆ process() [3/4]

const Chn& AuLib::Chn::process ( const AudioBase obj)
inline

extracts a channel from obj

◆ process() [4/4]

const Chn& AuLib::Chn::process ( const AudioBase obj,
uint32_t  chn 
)
inline

extracts channel chn from obj

Member Data Documentation

◆ m_chn

uint32_t AuLib::Chn::m_chn
protected

The documentation for this class was generated from the following file: