FabGL
ESP32 Display Controller and Graphics Library
|
SamplesGenerator * playSamples | ( | int8_t const * | data, |
int | length, | ||
int | volume = 100 , |
||
int | durationMS = 0 |
||
) |
Plays the specified samples.
Starts immediately to play the specified samples. It is not required to call play(). This method returns without wait the end of sound.
data | Samples to play. |
length | Number of samples to play. |
volume | Volume value. Minimum is 0, maximum is 127. |
durationMS | Duration in milliseconds. 0 = untile end of samples, -1 = infinite loop. |
Definition at line 669 of file soundgen.cpp.