31 #include "../system/prerequisites.h"
57 virtual void init() = 0;
58 virtual void exit() = 0;
60 virtual void start() = 0;
61 virtual void stop() = 0;
std::vector< PCMDataType > PacketType
Type definition of a PCM packet (vector of PCM values).
virtual void start()=0
Start/restart the audio device.
std::string mAudioDeviceName
User-readable string of the used audio device.
const std::string & getDeviceName() const
Get a readable string of the name of the audio device.
virtual ~AudioBase()
Destructor (no functionality).
virtual void stop()=0
Stop the audio device.
void setDeviceName(const std::string &n)
Set the device name.
int getChannelCount() const
Get the actual number of channels (1=mono, 2=stereo).
virtual void setChannelCount(int cnt)
Set the number of channels (1=mono, 2=stereo).
int getSamplingRate() const
Get the actual sampling rate.
virtual void exit()=0
Destroy the audio device.
int mChannelCount
Current channel count.
virtual void init()=0
Inizialize the audio device.
int mSamplingRate
Current sampling rate.
virtual void setSamplingRate(int rate)
Allow the implementation to change the sampling rate during operation.
Abstract base class for audio interfaces.