You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/AudioTools/Disk/AudioSource.h
+20-2Lines changed: 20 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -232,7 +232,16 @@ class NamePrinter : public Print {
232
232
* @brief Audio Data Source managing a Vector of (file) names with minimal RAM
233
233
* usage. Files are stored with separated path index and name to minimize memory
234
234
* consumption. Identical paths are stored only once in a shared path registry.
235
-
* This class is a template to support multiple SD libraries.
235
+
* This class is a template to support multiple SD libraries and other Streams.
236
+
*
237
+
* @note A mandatory callback function must be provided to convert a file path (and optionally an old file instance) into a stream or file object. This callback is set via the constructor or setNameToStreamCallback().
* Without this callback, the class cannot open or access files for playback. Also
243
+
* don't forget to close the old file to prevent any memory leaks.
244
+
*
236
245
* @ingroup player
237
246
* @author Phil Schatzmann
238
247
* @copyright GPLv3
@@ -468,7 +477,16 @@ class AudioSourceVector : public AudioSource, public PathNamesRegistry {
468
477
/**
469
478
* @brief Audio Data Source managing a static array of file names (const char*).
470
479
* Designed for PROGMEM storage on Arduino platforms with static file lists.
471
-
* This class is a template to support multiple SD libraries.
480
+
* This class is a template to support multiple SD libraries and other Streams.
481
+
*
482
+
* @note A mandatory callback function must be provided to convert a file path (and optionally an old file instance) into a stream or file object. This callback is set via the constructor or setNameToStreamCallback().
0 commit comments