-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathArdBtSource.h
58 lines (40 loc) · 1.08 KB
/
ArdBtSource.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#include "Stk.h"
#ifdef __BT_A2DP__
#ifndef ARDBTSOURCE_H
#define ARDBTSOURCE_H
#include "WvOut.h"
#include "ArdCommonOut.h"
#include "BluetoothA2DPSource.h"
#include "Voicer.h"
#include "esp_log.h"
namespace stk {
/***************************************************/
/*! \class stk::ArdBtSource
\brief ESP32 Output to Bluetooth
Implementation of a A2DP Bluetooth Source for the ESP32
which uses a Voicer as data source
by Phil Schatzmann
*/
/***************************************************/
class ArdBtSource : public Stk
{
public:
//! Default constructor ...
ArdBtSource();
//! Destructor
~ArdBtSource();
//! Starts the Bluetooth device
void start(char* name, Voicer &voicer);
//! Checks if this device is still connnected
bool isConnected();
//! Defines if the Flash NVS should be reset on start
void setNVSInit(bool doInit);
//! Defines if the BLE should be reset on start
void setResetBLE(bool doInit);
protected:
Voicer *pVoicer;
BluetoothA2DPSource *a2dp_source;
};
} // stk namespace
#endif
#endif