A simple Arduino Webserver which streams the audio using the indicated encoder.. This class is based on the WiFiServer class. All you need to do is to provide the data with a callback method or from a Stream.
More...
|
| AudioEncoderServer (AudioEncoder *encoder, const char *network, const char *password, int port=80) |
| Construct a new Audio Server object. More...
|
|
| AudioEncoderServer (AudioEncoder *encoder, int port=80) |
| Construct a new Audio Server object that supports an AudioEncoder We assume that the WiFi is already connected.
|
|
| ~AudioEncoderServer () |
| Destructor release the memory.
|
|
AudioEncoder * | audioEncoder () |
|
bool | begin (AudioServerDataCallback cb, const char *contentType) |
| Start the server. The data must be provided by a callback method. More...
|
|
bool | begin (AudioServerDataCallback cb, int sample_rate, int channels, int bits_per_sample=16) |
| Start the server. The data must be provided by a callback method. More...
|
|
bool | begin (AudioStream &in, BaseConverter *converter=nullptr) |
| Start the server. You need to be connected to WiFI before calling this method. More...
|
|
bool | begin (Stream &in, AudioInfo info, BaseConverter *converter=nullptr) |
| Start the server. You need to be connected to WiFI before calling this method. More...
|
|
bool | begin (Stream &in, const char *contentType) |
| Start the server. You need to be connected to WiFI before calling this method. More...
|
|
bool | begin (Stream &in, int sample_rate, int channels, int bits_per_sample=16, BaseConverter *converter=nullptr) |
| Start the server. You need to be connected to WiFI before calling this method. More...
|
|
bool | copy () |
| Add this method to your loop Returns true while the client is connected. (The same functionality like doLoop()) More...
|
|
bool | doLoop () |
| Add this method to your loop Returns true while the client is connected.
|
|
bool | isClientConnected () |
| Checks if any clinent has connnected.
|
|
Stream & | out () |
| Provides the output stream.
|
|
Client * | out_ptr () |
| Provides a pointer to the WiFiClient.
|
|
void | setConverter (BaseConverter *c) |
| defines a converter that will be used when the audio is rendered
|
|
void | setCopyBufferSize (int size) |
| Changes the copy buffer size.
|
|
A simple Arduino Webserver which streams the audio using the indicated encoder.. This class is based on the WiFiServer class. All you need to do is to provide the data with a callback method or from a Stream.
- Author
- Phil Schatzmann
- Copyright
- GPLv3