57 unsigned int _sample_count_hint,
58 const std::string & name =
"AudioIfc") :
SoDaBase(name) {
82 virtual int send(
void * buf,
unsigned int len) = 0;
100 virtual int recv(
void * buf,
unsigned int len,
bool block =
true) = 0;
162 virtual void wakeIn() = 0;
The Baseclass for all SoDa objects, and useful commonly used classes.
virtual float getInGain()
get the gain for the input device.
virtual void sleepIn()=0
stop the input stream so that we don't encounter a buffer overflow while the transmitter is inactive...
virtual bool setOutGain(float gain)
set the gain for the output device.
virtual std::string currentCaptureState()
virtual int send(void *buf, unsigned int len)=0
send – send a buffer to the audio output
unsigned int sample_count_hint
virtual std::string currentPlaybackState()
virtual int recv(void *buf, unsigned int len, bool block=true)=0
recv – get a buffer of data from the audio input
virtual bool recvBufferReady(unsigned int len)=0
recvBufferReady – is there enough space in the audio device recv buffer for a call from recv...
virtual bool sendBufferReady(unsigned int len)=0
sendBufferReady – is there enough space in the audio device send buffer for a call from send...
virtual float getOutGain()
get the gain for the output device.
virtual void sleepOut()=0
stop the output stream so that we don't encounter a buffer underflow while the reciever is muted...
virtual void wakeOut()=0
start the output stream
Generic Audio Interface Class.
AudioIfc(unsigned int _sample_rate, DataFormat _fmt, unsigned int _sample_count_hint, const std::string &name="AudioIfc")
virtual bool setInGain(float gain)
set the gain for the input device.
virtual void wakeIn()=0
start the input stream