File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
examples/examples-basic-api/basic-a2dp-fft Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 6
6
* @copyright GPLv3
7
7
*/
8
8
9
- #include " BluetoothA2DPSink.h"
10
9
#include " AudioTools.h"
11
10
#include " AudioLibs/AudioEspressifFFT.h" // or AudioKissFFT
11
+ #include " BluetoothA2DPSink.h"
12
12
13
13
BluetoothA2DPSink a2dp_sink;
14
14
AudioEspressifFFT fft; // or AudioKissFFT
15
15
16
16
// Provide data to FFT
17
- void readDataStream (const uint8_t *data, uint32_t length) {
17
+ void writeDataStream (const uint8_t *data, uint32_t length) {
18
18
fft.write (data, length);
19
19
}
20
20
@@ -47,7 +47,7 @@ void setup() {
47
47
fft.begin (tcfg);
48
48
49
49
// register callback
50
- a2dp_sink.set_stream_reader (readDataStream , false );
50
+ a2dp_sink.set_stream_reader (writeDataStream , false );
51
51
52
52
// Start Bluetooth Audio Receiver
53
53
Serial.print (" starting a2dp-fft..." );
You can’t perform that action at this time.
0 commit comments