FabGL
ESP32 Display Controller and Graphics Library
SamplesGenerator Class Reference

Samples generator. More...

#include <soundgen.h>

Inheritance diagram for SamplesGenerator:

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

Samples generator.

Sample data should be sampled at the same samplerate of the sound generator. Only 8 bit (signed - not compressed) depth is supported.

Definition at line 310 of file soundgen.h.


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