arduino-audio-tools
All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Modules Pages
KARadioProtocolServer.h
1#pragma once
2#include "AudioPlayerProtocolServer.h"
3#include "KARadioProtocol.h"
4
5namespace audio_tools {
6
15 public:
17 KARadioProtocolServer(AudioPlayer& player, int port = 80,
18 const char* ssid = nullptr, const char* pwd = nullptr) {
19 setProtocol(protocol);
20 setPlayer(player);
21 setPort(port);
22 setSSID(ssid);
23 setPassword(pwd);
24 }
25
28
29 protected:
30 KARadioProtocol protocol;
31};
32} // namespace audio_tools
Implements a simple audio player which supports the following commands:
Definition AudioPlayer.h:38
Definition AudioPlayerProtocolServer.h:14
void setPlayer(AudioPlayer &player)
Defines the player.
Definition AudioPlayerProtocolServer.h:32
KA-Radio Protocol: We can use the KA-Radio protocol to control the audio player provided by the audio...
Definition KARadioProtocol.h:26
KA-Radio Protocol Server which provides the KARadioProtocol over http to control the audio player pro...
Definition KARadioProtocolServer.h:14
KARadioProtocolServer()=default
Empty constructor: call setPlayer to define the player.
KARadioProtocolServer(AudioPlayer &player, int port=80, const char *ssid=nullptr, const char *pwd=nullptr)
Default constructor.
Definition KARadioProtocolServer.h:17
Generic Implementation of sound input and output for desktop environments using portaudio.
Definition AudioCodecsBase.h:10