|
| AudioSourceSDFAT (const char *startFilePath, const char *ext, SdSpiConfig &config) |
| Costructor with SdSpiConfig.
|
|
| AudioSourceSDFAT (const char *startFilePath, const char *ext, SdSpiConfig &config, bool setupIndex=true) |
| Costructor with SdSpiConfig.
|
|
| AudioSourceSDFAT (const char *startFilePath="/", const char *ext=".mp3", int chipSelect=PIN_CS, int speedMHz=10) |
| Default constructor.
|
|
| AudioSourceSDFAT (const char *startFilePath="/", const char *ext=".mp3", int chipSelect=PIN_CS, int speedMHz=10, int spi_mode=DEDICATED_SPI, bool setupIndex=true) |
| Default constructor.
|
|
virtual | ~AudioSourceSDFAT () |
| Destructor.
|
|
virtual void | begin () override |
| Reset actual stream and move to root.
|
|
virtual void | begin () override |
| Reset actual stream and move to root.
|
|
void | end () |
|
int | index () |
| Provides the current index position.
|
|
int | index () |
| Provides the current index position.
|
|
virtual bool | isAutoNext () |
| Returns default setting go to the next.
|
|
virtual bool | isAutoNext () |
| Returns default setting go to the next.
|
|
virtual Stream * | nextStream (int offset) override |
| Returns next audio stream.
|
|
virtual Stream * | nextStream (int offset=1) override |
| Returns next audio stream.
|
|
Stream * | operator[] (int idx) |
| access with array syntax
|
|
virtual Stream * | previousStream (int offset) |
| Returns previous audio stream.
|
|
virtual Stream * | selectStream (const char *path) override |
| Returns audio stream by path.
|
|
virtual Stream * | selectStream (const char *path) override |
| Returns audio stream by path.
|
|
virtual Stream * | selectStream (int index) override |
| Returns audio stream at the indicated index (the index is zero based, so the first value is 0!)
|
|
virtual Stream * | selectStream (int index) override |
| Returns audio stream at the indicated index (the index is zero based, so the first value is 0!)
|
|
void | setFileFilter (const char *filter) |
|
void | setFileFilter (const char *filter) |
| Defines the regex filter criteria for selecting files. E.g. ".*Bob Dylan.*".
|
|
virtual Stream * | setIndex (int index) |
| same as selectStream - I just prefer this name
|
|
virtual bool | setMetadataCallback (void(*fn)(MetaDataType info, const char *str, int len), ID3TypeSelection sel=SELECT_ICY) |
|
virtual void | setPath (const char *p) |
| Allows to "correct" the start path if not defined in the constructor.
|
|
virtual void | setPath (const char *p) |
| Allows to "correct" the start path if not defined in the constructor.
|
|
virtual void | setTimeout (int ms) |
| Sets the timeout of Stream in milliseconds.
|
|
virtual void | setTimeoutAutoNext (int millisec) |
| Sets the timeout which is triggering to move to the next stream. - the default value is 500 ms.
|
|
long | size () |
|
virtual int | timeoutAutoNext () |
| Provides the timeout which is triggering to move to the next stream.
|
|
const char * | toStr () |
| provides the actual file name
|
|
const char * | toStr () |
| provides the actual file name
|
|
ESP32 AudioSource for AudioPlayer using an SD card as data source. This class is based on the Arduino SD implementation Connect the SD card. For UTF8 Support change SdFatConfig.h #define USE_UTF8_LONG_NAMES 1.
AudioSource for AudioPlayer using an SD card as data source. This class is based on https://github.com/greiman/SdFat.
- Author
- Phil Schatzmann
- Copyright
- GPLv3