FabGL
ESP32 Display Controller and Graphics Library
WaveformGenerator Class Referenceabstract

Base abstract class for waveform generators. A waveform generator can be seen as an audio channel that will be mixed by SoundGenerator. More...

#include <soundgen.h>

Inheritance diagram for WaveformGenerator:

Public Member Functions

uint32_t duration ()
 Returns number of remaining samples to play. More...
 
void enable (bool value)
 Enables or disabled this generator. More...
 
bool enabled ()
 Determines whether this generator is enabled or disabled. More...
 
virtual int getSample ()=0
 Gets next sample. More...
 
uint16_t sampleRate ()
 Determines the sample rate. More...
 
void setAutoDestroy (bool value)
 Sets autodestroy mode. More...
 
void setAutoDetach (bool value)
 Sets autodetach mode. More...
 
void setDuration (uint32_t value)
 Sets number of samples to play. More...
 
virtual void setFrequency (int value)=0
 Sets output frequency. More...
 
void setSampleRate (int value)
 Sets the sample rate. More...
 
void setVolume (int value)
 Sets volume of this generator. More...
 
int volume ()
 Determines current volume. More...
 

Detailed Description

Base abstract class for waveform generators. A waveform generator can be seen as an audio channel that will be mixed by SoundGenerator.

Definition at line 62 of file soundgen.h.


The documentation for this class was generated from the following file: