Skip to content

Commit eeb758e

Browse files
committed
Comments
1 parent 07345ac commit eeb758e

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/AudioEffects/SoundGenerator.h

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,11 +379,19 @@ class GeneratorFromStream : public SoundGenerator<T> {
379379
*
380380
* @tparam T
381381
*/
382-
382+
383383
template <class T>
384384
class GeneratorFromArray : public SoundGenerator<T> {
385385
public:
386386

387+
/**
388+
* @brief Construct a new Generator From Array object
389+
*
390+
* @tparam array array of audio data of the the type defined as class template parameter
391+
* @param repeat number of repetions the array should be played (default 1)
392+
* @param setInactiveAtEnd defines if the generator is set inactive when the array has played fully. Default is true.
393+
*/
394+
387395
template <size_t arrayLen>
388396
GeneratorFromArray(T(&array)[arrayLen], int repeat=0, bool setInactiveAtEnd=true) {
389397
LOGD(LOG_METHOD);
@@ -439,7 +447,7 @@ class GeneratorFromArray : public SoundGenerator<T> {
439447
return result;
440448
}
441449

442-
// Similar like
450+
// Similar like is active to check if the array is still playing.
443451
bool isRunning() {
444452
return is_running;
445453
}

0 commit comments

Comments
 (0)