|
AuLib
1.0beta
|
#include <AuLib/SoundIn.h>


Public Member Functions | |
| SoundIn (const char *src, uint32_t nchnls=def_nchnls, uint32_t vframes=def_vframes, uint64_t bframes=def_bframes, double sr=def_sr) | |
| ~SoundIn () | |
| const double * | read (uint32_t frames=def_vframes) |
| double | time () const |
| const char * | src () const |
| uint64_t | dur () const |
| virtual const char * | error_message () const |
| const double * | operator() (uint32_t frames=def_vframes) |
Public Member Functions inherited from AuLib::AudioBase | |
| AudioBase (uint32_t nchnls=def_nchnls, uint32_t vframes=def_vframes, double sr=def_sr) | |
| virtual const AudioBase & | operator*= (double scal) |
| virtual const AudioBase & | operator*= (const double *sig) |
| virtual const AudioBase & | operator*= (const AudioBase &obj) |
| virtual const AudioBase & | operator+= (double offs) |
| virtual const AudioBase & | operator+= (const double *sig) |
| virtual const AudioBase & | operator+= (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 AudioBase & | set (const AudioBase &obj) |
| const AudioBase & | set (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 |
Friends | |
| int | rt_audio (const float *input, float *output, unsigned long frameCount, const void *timeInfo, unsigned long statusFlags, SoundIn *userData) |
| void | audio (SoundIn &obj) |
Additional Inherited Members | |
Public Types inherited from AuLib::AudioBase | |
| typedef std::vector< double >::iterator | iterator |
| typedef std::vector< double >::const_iterator | const_iterator |
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 |
Audio input class
| AuLib::SoundIn::SoundIn | ( | const char * | src, |
| uint32_t | nchnls = def_nchnls, |
||
| uint32_t | vframes = def_vframes, |
||
| uint64_t | bframes = def_bframes, |
||
| double | sr = def_sr |
||
| ) |
SoundIn constructor
src - input source ("adc", "stdin", or file path)
vframes - vector size
bframes - buffer size in frames
| AuLib::SoundIn::~SoundIn | ( | ) |
SoundOut destructor
|
inline |
Get the file duration in frames
|
inlinevirtual |
Get error message
Reimplemented from AuLib::AudioBase.
|
inline |
operator () convenience method
| const double * AuLib::SoundIn::read | ( | uint32_t | frames = def_vframes | ) |
Reads frames of audio to output
|
inline |
Get the source name
|
inline |
Get the current vector stream time
|
friend |
|
friend |
1.8.13