|
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 |
|
inlineprotected |
|
inlinevirtualinherited |
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 |
|
inlineprotected |
|
inlineoverridevirtual |
Returns next audio stream.
Implements AudioSource.
|
inlineprotected |
|
inlineinherited |
access with array syntax
|
inlinevirtualinherited |
Returns previous audio stream.
Reimplemented in AudioSourceFTP< ClientType >, and AudioSourceURL.
|
inlineprotected |
|
inlineprotected |
|
inlineoverridevirtual |
Returns audio stream by path: The index is not changed!
Implements AudioSource.
|
inlineoverridevirtual |
Returns audio stream at the indicated index (the index is zero based, so the first value is 0!)
Reimplemented from AudioSource.
|
inlinevirtualinherited |
Reimplemented in AudioSourceCallback.
|
inline |
|
inlinevirtualinherited |
same as selectStream - I just prefer this name
|
inlinevirtualinherited |
Reimplemented in AudioSourceURL.
|
inline |
|
inlinevirtualinherited |
Sets the timeout of Stream in milliseconds.
Reimplemented in AudioSourceURL.
|
inlinevirtualinherited |
Sets the timeout which is triggering to move to the next stream. - the default value is 500 ms
|
inline |
|
inlinevirtualinherited |
Provides the timeout which is triggering to move to the next stream.
|
inlinevirtualinherited |
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 >.
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedinherited |
|
protected |
|
protected |
|
protectedinherited |