FabGL
ESP32 Display Controller and Graphics Library
TriangleWaveformGenerator Class Reference

Triangle waveform generator. More...

#include <soundgen.h>

Inheritance diagram for TriangleWaveformGenerator:

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...
 

Detailed Description

Triangle waveform generator.

Definition at line 219 of file soundgen.h.


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