|
arduino-audio-tools
|
Abstract class for protocol to control the audio player. More...
#include <AudioPlayerProtocol.h>
Public Member Functions | |
| virtual bool | processCommand (const char *input, Print &result)=0 |
| virtual bool | processCommand (Stream &input, Print &result) |
| Proceess commands passed by Stream (e.g. Serial) | |
| void | setMaxInputBufferSize (int size) |
| Defines the input buffer size used by the readLine function (default 256) | |
| virtual void | setPlayer (AudioPlayer &player) |
| Defines the player. | |
Protected Member Functions | |
| int | readLine (Stream &in, char *str, int max) |
| Reads a line delimited by ' ' from the stream. | |
Protected Attributes | |
| int | max_input_buffer_size = 256 |
| AudioPlayer * | p_player = nullptr |
Abstract class for protocol to control the audio player.
processes the commands and returns the result output via the Print object
Implemented in KARadioProtocol.
Proceess commands passed by Stream (e.g. Serial)
Reimplemented in KARadioProtocol.
Reads a line delimited by '
' from the stream.
Defines the input buffer size used by the readLine function (default 256)
|
inlinevirtual |
Defines the player.
Reimplemented in KARadioProtocol.
|
protected |
|
protected |