File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -379,11 +379,19 @@ class GeneratorFromStream : public SoundGenerator<T> {
379
379
*
380
380
* @tparam T
381
381
*/
382
-
382
+
383
383
template <class T >
384
384
class GeneratorFromArray : public SoundGenerator <T> {
385
385
public:
386
386
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
+
387
395
template <size_t arrayLen>
388
396
GeneratorFromArray (T(&array)[arrayLen], int repeat=0 , bool setInactiveAtEnd=true ) {
389
397
LOGD (LOG_METHOD);
@@ -439,7 +447,7 @@ class GeneratorFromArray : public SoundGenerator<T> {
439
447
return result;
440
448
}
441
449
442
- // Similar like
450
+ // Similar like is active to check if the array is still playing.
443
451
bool isRunning () {
444
452
return is_running;
445
453
}
You can’t perform that action at this time.
0 commit comments