Entropy Piano Tuner
1.1.3 (documentation not yet complete)
An open-source experimental software for piano tuning by entropy minimization
|
Abstract base class for sound-producing software components which transmit data to the AudioPlayerAdapter. More...
#include <pcmwriterinterface.h>
Public Member Functions | |
virtual void | init (const int sampleRate, const int channels) |
Initialize the PCM-Writer with given sample rate and channel number. More... | |
virtual void | exit ()=0 |
Exit, shut down writer interface. More... | |
virtual bool | generateAudioSignal (AudioBase::PacketType &outputPacket)=0 |
Function that generates new sound and copies it to the outputPacket. More... | |
Protected Attributes | |
int | mSampleRate = 0 |
Sample rate. More... | |
int | mChannels = 0 |
Number of channels. More... | |
Abstract base class for sound-producing software components which transmit data to the AudioPlayerAdapter.
This class is the base class for any derived class that produces sound and sends it to the audio device. In the EPT the Synthesizer is the only class that produces sound. This is a header file only without implementation (cpp) file.
Definition at line 37 of file pcmwriterinterface.h.
|
pure virtual |
Exit, shut down writer interface.
Implemented in Synthesizer.
|
pure virtual |
Function that generates new sound and copies it to the outputPacket.
This function is called by the implementation of the AudioPlayer as a request to generate new sound and to copy it to the outputPacket passed by reference.
outputPacket | The output packet (newly generated sound) to be filled. The length of the packet can be chosen freely. |
Implemented in Synthesizer.
|
inlinevirtual |
Initialize the PCM-Writer with given sample rate and channel number.
sampleRate | : The sample rate |
channels | : The number of channels |
Reimplemented in Synthesizer.
Definition at line 46 of file pcmwriterinterface.h.
|
protected |
Number of channels.
Definition at line 66 of file pcmwriterinterface.h.
|
protected |
Sample rate.
Definition at line 65 of file pcmwriterinterface.h.