20 #ifndef PCMWRITERINTERFACE
21 #define PCMWRITERINTERFACE
23 #include "../audiobase.h"
46 virtual void init(
const int sampleRate,
const int channels)
49 virtual void exit()=0;
69 #endif // PCMWRITERINTERFACE
std::vector< PCMDataType > PacketType
Type definition of a PCM packet (vector of PCM values).
Abstract base class for sound-producing software components which transmit data to the AudioPlayerAda...
virtual void init(const int sampleRate, const int channels)
Initialize the PCM-Writer with given sample rate and channel number.
int mSampleRate
Sample rate.
virtual bool generateAudioSignal(AudioBase::PacketType &outputPacket)=0
Function that generates new sound and copies it to the outputPacket.
int mChannels
Number of channels.
virtual void exit()=0
Exit, shut down writer interface.