|
arduino-audio-tools
|
Audio Source which provides the data via the network from an URL. More...
#include <AudioSourceURL.h>
Public Member Functions | |
| template<typename T , size_t N> | |
| AudioSourceURL (AbstractURLStream &urlStream, T(&urlArray)[N], const char *mime, int startPos=0) | |
| virtual | ~AudioSourceURL () |
| virtual bool | begin () override |
| Setup Wifi URL. | |
| void | end () |
| int | index () |
| Returns the actual index of the stream. | |
| virtual bool | isAutoNext () |
| Returns default setting go to the next. | |
| Stream * | nextStream (int offset) override |
| Opens the next url from the array. | |
| Stream * | operator[] (int idx) |
| access with array syntax | |
| Stream * | previousStream (int offset) override |
| Opens the Previous url from the array. | |
| Stream * | selectStream (const char *path) override |
| Opens the selected url. | |
| Stream * | selectStream (int idx) override |
| Opens the selected url from the array. | |
| virtual void | setAutoNext (bool flag) |
| virtual Stream * | setIndex (int index) |
| same as selectStream - I just prefer this name | |
| bool | setMetadataCallback (void(*fn)(MetaDataType info, const char *str, int len), ID3TypeSelection sel=SELECT_ICY) |
| void | setTimeout (int millisec) |
| Sets the timeout of the URL Stream in milliseconds. | |
| virtual void | setTimeoutAutoNext (int millisec) |
| virtual int | size () |
| virtual int | timeoutAutoNext () |
| Provides the timeout which is triggering to move to the next stream. | |
| const char * | toStr () |
| provides the actual stream (e.g. file) name or url | |
Protected Member Functions | |
| AudioSourceURL ()=default | |
| allow use with empty constructor in subclasses | |
| virtual const char * | value (int pos) |
Protected Attributes | |
| AbstractURLStream * | actual_stream = nullptr |
| bool | is_auto_next = true |
| int | max = 0 |
| const char * | mime = nullptr |
| int | pos = 0 |
| bool | started = false |
| int | timeout_auto_next_value = 500 |
| const char ** | urlArray = nullptr |
Audio Source which provides the data via the network from an URL.
|
inline |
|
inlinevirtual |
|
protecteddefault |
allow use with empty constructor in subclasses
|
inlineoverridevirtual |
Setup Wifi URL.
Implements AudioSource.
|
inline |
|
inlinevirtual |
Returns the actual index of the stream.
Reimplemented from AudioSource.
|
inlinevirtual |
Returns default setting go to the next.
Reimplemented from AudioSource.
|
inlineoverridevirtual |
Opens the next url from the array.
Implements AudioSource.
|
inlineinherited |
access with array syntax
|
inlineoverridevirtual |
Opens the Previous url from the array.
Reimplemented from AudioSource.
|
inlineoverridevirtual |
Opens the selected url.
Implements AudioSource.
|
inlineoverridevirtual |
Opens the selected url from the array.
Reimplemented from AudioSource.
|
inlinevirtualinherited |
Reimplemented in AudioSourceCallback.
|
inlinevirtualinherited |
same as selectStream - I just prefer this name
|
inlinevirtual |
Reimplemented from AudioSource.
|
inlinevirtual |
Sets the timeout of the URL Stream in milliseconds.
Reimplemented from AudioSource.
|
inlinevirtualinherited |
Sets the timeout which is triggering to move to the next stream. - the default value is 500 ms
|
inlinevirtual |
Reimplemented in AudioSourceDynamicURL.
|
inlinevirtualinherited |
Provides the timeout which is triggering to move to the next stream.
|
inlinevirtual |
provides the actual stream (e.g. file) name or url
Reimplemented from AudioSource.
|
inlineprotectedvirtual |
Reimplemented in AudioSourceDynamicURL.
|
protected |
|
protectedinherited |
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedinherited |
|
protected |