FabGL
ESP32 Display Controller and Graphics Library
|
Sine waveform generator. More...
#include <soundgen.h>
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... | |
int | getSample () |
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... | |
void | setFrequency (int value) |
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... | |
Sine waveform generator.
Definition at line 185 of file soundgen.h.