Skip to content

Commit df0680f

Browse files
committed
CsvStream
1 parent 6da1177 commit df0680f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

examples/examples-stream/streams-generator-csv/streams-generator-csv.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ void setup(void) {
2424
// start the bluetooth
2525
auto config = out.defaultConfig();
2626
config.sample_rate = sample_rate;
27+
config.channels = channels;
2728
out.begin(config);
2829

2930
// Setup sine wave

src/AudioTools/AudioOutput.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ class CsvStream : public AudioPrint, public AudioBaseInfoDependent {
7979
/// Provides the default configuration
8080
AudioBaseInfo defaultConfig(){
8181
AudioBaseInfo info;
82+
info.channels = 2;
83+
info.sample_rate = 44100;
84+
info.bits_per_sample = sizeof(T)*8;
8285
return info;
8386
}
8487

0 commit comments

Comments
 (0)