We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ab3de1 commit d425917Copy full SHA for d425917
examples/examples-vs1053/streams-vs1053-serial/streams-vs1053-serial.ino
@@ -11,8 +11,9 @@
11
#include "AudioTools.h"
12
#include "AudioLibs/VS1053Stream.h"
13
14
+int channels = 1;
15
VS1053Stream in; // Access VS1053/VS1003 as stream
-CsvStream<int16_t> csvStream(Serial);
16
+CsvStream<int16_t> csvStream(Serial, channels);
17
StreamCopy copier(csvStream, in); // copy in to csvStream
18
19
// Arduino Setup
@@ -22,7 +23,7 @@ void setup(void) {
22
23
24
auto cfg = in.defaultConfig(RX_MODE);
25
cfg.sample_rate = 16000;
- cfg.channels = 1;
26
+ cfg.channels = channels;
27
cfg.input_device = VS1053_MIC; // or VS1053_AUX
28
in.begin(cfg);
29
0 commit comments