File tree Expand file tree Collapse file tree 9 files changed +25
-25
lines changed
examples-audiokit/streams-audiokit-serial
examples-vs1053/streams-vs1053-serial Expand file tree Collapse file tree 9 files changed +25
-25
lines changed Original file line number Diff line number Diff line change 1313
1414AudioInfo info (44100 , 2 , 16 );
1515AudioBoardStream kit (AudioKitEs8388V1); // Access I2S as stream
16- CsvOutput<int16_t > csvStream (Serial);
17- StreamCopy copier (csvStream , kit); // copy kit to csvStream
16+ CsvOutput<int16_t > csvOutput (Serial);
17+ StreamCopy copier (csvOutput , kit); // copy kit to csvOutput
1818
1919// Arduino Setup
2020void setup (void ) {
@@ -27,7 +27,7 @@ void setup(void) {
2727 kit.begin (cfg);
2828
2929 // make sure that we have the correct channels set up
30- csvStream .begin (info);
30+ csvOutput .begin (info);
3131
3232}
3333
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ const int I2S_SCK = 36;
77const int I2S_SD = 35 ;
88const AudioInfo info (8000 , 1 , 16 );
99I2SStream i2sStream; // Access I2S as stream
10- CsvOutput<int16_t > csvStream (Serial);
11- StreamCopy copier (csvStream , i2sStream); // copy i2sStream to csvStream
10+ CsvOutput<int16_t > csvOutput (Serial);
11+ StreamCopy copier (csvOutput , i2sStream); // copy i2sStream to csvOutput
1212
1313// Arduino Setup
1414void setup (void ) {
@@ -25,7 +25,7 @@ void setup(void) {
2525 i2sStream.begin (cfg);
2626
2727 // make sure that we have the correct channels set up
28- csvStream .begin (info);
28+ csvOutput .begin (info);
2929
3030 Serial.println (" starting..." );
3131
Original file line number Diff line number Diff line change 2222
2323AudioInfo info (44100 , 2 , 16 );
2424AudioBoardStream i2s (LyratMini); // Access I2S as stream
25- CsvOutput<int16_t > csvStream (Serial);
26- StreamCopy copier (csvStream , i2s); // copy i2s to csvStream
25+ CsvOutput<int16_t > csvOutput (Serial);
26+ StreamCopy copier (csvOutput , i2s); // copy i2s to csvOutput
2727
2828// Arduino Setup
2929void setup (void ) {
@@ -39,7 +39,7 @@ void setup(void) {
3939 i2s.begin (cfg);
4040
4141 // make sure that we have the correct number of channels set up
42- csvStream .begin (info);
42+ csvOutput .begin (info);
4343
4444}
4545
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ the ESP32 is acting as master.
3030I recommend this sketch as a starting point for all I2S input. Just leave the masterclock out, because this is not needed for most input devices.
3131If it is working with 32 bit you can try to change it to 16bits which most of the time works as well:
3232
33- - CsvOutput<int16_t> csvStream (Serial);
33+ - CsvOutput<int16_t> csvOutput (Serial);
3434- cfg.bits_per_sample = 16;
3535
3636see streams-12s-serial_16_bit
Original file line number Diff line number Diff line change 1212
1313AudioInfo info (44100 , 2 , 32 );
1414I2SStream i2sStream; // Access I2S as stream
15- CsvOutput<int32_t > csvStream (Serial);
16- StreamCopy copier (csvStream , i2sStream); // copy i2sStream to csvStream
15+ CsvOutput<int32_t > csvOutput (Serial);
16+ StreamCopy copier (csvOutput , i2sStream); // copy i2sStream to csvOutput
1717
1818// Arduino Setup
1919void setup (void ) {
@@ -30,7 +30,7 @@ void setup(void) {
3030 i2sStream.begin (cfg);
3131
3232 // make sure that we have the correct channels set up
33- csvStream .begin (info);
33+ csvOutput .begin (info);
3434
3535}
3636
Original file line number Diff line number Diff line change 1212
1313AudioInfo info (44100 , 2 , 16 );
1414I2SStream i2sStream; // Access I2S as stream
15- CsvOutput<int16_t > csvStream (Serial);
16- StreamCopy copier (csvStream , i2sStream); // copy i2sStream to csvStream
15+ CsvOutput<int16_t > csvOutput (Serial);
16+ StreamCopy copier (csvOutput , i2sStream); // copy i2sStream to csvOutput
1717
1818// Arduino Setup
1919void setup (void ) {
@@ -30,7 +30,7 @@ void setup(void) {
3030 i2sStream.begin (cfg);
3131
3232 // make sure that we have the correct channels set up
33- csvStream .begin (info);
33+ csvOutput .begin (info);
3434
3535}
3636
Original file line number Diff line number Diff line change 1212
1313AudioInfo info (44100 , 1 , 16 );
1414I2SStream i2sStream; // Access I2S as stream
15- CsvOutput<int16_t > csvStream (Serial);
16- StreamCopy copier (csvStream , i2sStream); // copy i2sStream to csvStream
15+ CsvOutput<int16_t > csvOutput (Serial);
16+ StreamCopy copier (csvOutput , i2sStream); // copy i2sStream to csvOutput
1717
1818// Arduino Setup
1919void setup (void ) {
@@ -29,7 +29,7 @@ void setup(void) {
2929 i2sStream.begin (cfg);
3030
3131 // make sure that we have the correct channels set up
32- csvStream .begin (info);
32+ csvOutput .begin (info);
3333
3434}
3535
Original file line number Diff line number Diff line change 1313
1414
1515AudioMP34DT05 mic; // Access I2S as stream
16- CsvOutput<int16_t > csvStream (Serial);
17- StreamCopy copier (csvStream , mic); // copy mic to csvStream
16+ CsvOutput<int16_t > csvOutput (Serial);
17+ StreamCopy copier (csvOutput , mic); // copy mic to csvOutput
1818
1919// Arduino Setup
2020void setup (void ) {
@@ -31,7 +31,7 @@ void setup(void) {
3131 mic.begin (cfg);
3232
3333 // make sure that we have the correct channels set up
34- csvStream .begin (cfg);
34+ csvOutput .begin (cfg);
3535
3636 Serial.println (" started" );
3737
Original file line number Diff line number Diff line change 1313
1414AudioInfo info (1600 , 1 , 16 );
1515VS1053Stream in; // Access VS1053/VS1003 as stream
16- CsvOutput<int16_t > csvStream (Serial);
17- StreamCopy copier (csvStream , in); // copy in to csvStream
16+ CsvOutput<int16_t > csvOutput (Serial);
17+ StreamCopy copier (csvOutput , in); // copy in to csvOutput
1818
1919// Arduino Setup
2020void setup (void ) {
@@ -27,7 +27,7 @@ void setup(void) {
2727 in.begin (cfg);
2828
2929 // make sure that we have the correct channels set up
30- csvStream .begin (info);
30+ csvOutput .begin (info);
3131
3232}
3333
You can’t perform that action at this time.
0 commit comments