|
arduino-audio-tools
|
AudioSource using Zephyr FS API (NO mounting, only uses mounted FS). Mount using the ZephyrSD class. More...
#include <AudioSourceZephyr.h>
Public Member Functions | |
| AudioSourceZephyr (const char *mountPoint="/SD", const char *ext=".mp3") | |
| ~AudioSourceZephyr () | |
| bool | begin () override |
| Reset actual stream and move to root. | |
| void | end () |
| virtual int | index () |
| Returns the actual index of the stream. | |
| int | index () const |
| bool | isAutoNext () override |
| Returns default setting go to the next. | |
| 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. | |
| Stream * | selectStream (const char *path) override |
| Returns audio stream by path: The index is not changed! | |
| Stream * | selectStream (int index) override |
| virtual void | setAutoNext (bool flag) |
| void | setFileFilter (const char *filter) |
| 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) |
| void | setPath (const char *p) |
| virtual void | setTimeout (int millisec) |
| Sets the timeout of Stream in milliseconds. | |
| virtual void | setTimeoutAutoNext (int millisec) |
| long | size (bool force_rescan=false) |
| virtual int | timeoutAutoNext () |
| Provides the timeout which is triggering to move to the next stream. | |
| virtual const char * | toStr () |
| provides the actual stream (e.g. file) name or url | |
| const char * | toStr () const |
Protected Member Functions | |
| void | closeFile () |
| const char * | get (int idx) |
| bool | isMounted () const |
| bool | isValidAudioFile (const char *name) |
| Stream * | openFile (const char *path) |
| void | scanCount (const char *path) |
| const char * | scanForIndex (const char *path, int target, int &running) |
Protected Attributes | |
| long | count = 0 |
| char | current_path [256+1] = {} |
| const char * | extension = ".mp3" |
| const char * | file_name_pattern = "*" |
| ZephyrFile | file_stream |
| size_t | idx_pos = 0 |
| bool | is_auto_next = true |
| const char * | mount_point = "/SD" |
| const char * | start_path = "/" |
| int | timeout_auto_next_value = 500 |
AudioSource using Zephyr FS API (NO mounting, only uses mounted FS). Mount using the ZephyrSD class.
|
inline |
|
inline |
|
inlineoverridevirtual |
Reset actual stream and move to root.
Implements AudioSource.
|
inlineprotected |
|
inline |
Returns the actual index of the stream.
Reimplemented in AudioSourceIdxSD, AudioSourceIdxSDFAT< AudioFs, AudioFile >, AudioSourceIdxSDMMC, AudioSourceLittleFS, AudioSourceSD, AudioSourceSDFAT< AudioFs, AudioFile >, AudioSourceSDMMC, AudioSourceSPIFFS, AudioSourceSTD, AudioSourceURL, AudioSourceVFS, AudioSourceVector< FileType >, AudioSourceArray< FileType >, and AudioSourceFTP< ClientType >.
|
inline |
|
inlineoverridevirtual |
Returns default setting go to the next.
Reimplemented from AudioSource.
|
inlineprotected |
Returns next audio stream.
Implements AudioSource.
Returns previous audio stream.
Reimplemented in AudioSourceFTP< ClientType >, and AudioSourceURL.
Returns audio stream by path: The index is not changed!
Implements AudioSource.
Returns audio stream at the indicated index (the index is zero based, so the first value is 0!)
Reimplemented from AudioSource.
Reimplemented in AudioSourceCallback.
same as selectStream - I just prefer this name
|
inlinevirtualinherited |
Reimplemented in AudioSourceURL.
Sets the timeout of Stream in milliseconds.
Reimplemented in AudioSourceURL.
Sets the timeout which is triggering to move to the next stream. - the default value is 500 ms
Provides the timeout which is triggering to move to the next stream.
provides the actual stream (e.g. file) name or url
Reimplemented in AudioSourceIdxSD, AudioSourceIdxSDFAT< AudioFs, AudioFile >, AudioSourceIdxSDMMC, AudioSourceLittleFS, AudioSourceSD, AudioSourceSDFAT< AudioFs, AudioFile >, AudioSourceSDMMC, AudioSourceSPIFFS, AudioSourceSTD, AudioSourceURL, AudioSourceVFS, AudioSourceVector< FileType >, AudioSourceArray< FileType >, and AudioSourceFTP< ClientType >.
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedinherited |