release
This commit is contained in:
35
src/AudioManager.h
Normal file
35
src/AudioManager.h
Normal file
@@ -0,0 +1,35 @@
|
||||
#ifndef AudioManager_h
|
||||
#define AudioManager_h
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <MqttManager.h>
|
||||
|
||||
class AudioManager_
|
||||
{
|
||||
private:
|
||||
// The pins the buttons are connected to
|
||||
AudioManager_() = default;
|
||||
|
||||
public:
|
||||
static AudioManager_ &getInstance();
|
||||
void setup();
|
||||
void tick();
|
||||
uint8_t curGain = 15;
|
||||
String StreamInfo = "";
|
||||
bool isRunning;
|
||||
void increaseVol();
|
||||
void decreaseVol();
|
||||
void setGain(uint8_t);
|
||||
void playText(String text);
|
||||
String getNextRadioStation(bool playPrevious);
|
||||
void startRadioStation(String stationName);
|
||||
String getCurrentRadioStation();
|
||||
void prevStation();
|
||||
void nextStation();
|
||||
void stopPlay();
|
||||
int stationIndex;
|
||||
};
|
||||
|
||||
extern AudioManager_ &AudioManager;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user