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 13
13
14
14
AudioInfo info (44100 , 2 , 16 );
15
15
AudioBoardStream 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
18
18
19
19
// Arduino Setup
20
20
void setup (void ) {
@@ -27,7 +27,7 @@ void setup(void) {
27
27
kit.begin (cfg);
28
28
29
29
// make sure that we have the correct channels set up
30
- csvStream .begin (info);
30
+ csvOutput .begin (info);
31
31
32
32
}
33
33
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ const int I2S_SCK = 36;
7
7
const int I2S_SD = 35 ;
8
8
const AudioInfo info (8000 , 1 , 16 );
9
9
I2SStream 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
12
12
13
13
// Arduino Setup
14
14
void setup (void ) {
@@ -25,7 +25,7 @@ void setup(void) {
25
25
i2sStream.begin (cfg);
26
26
27
27
// make sure that we have the correct channels set up
28
- csvStream .begin (info);
28
+ csvOutput .begin (info);
29
29
30
30
Serial.println (" starting..." );
31
31
Original file line number Diff line number Diff line change 22
22
23
23
AudioInfo info (44100 , 2 , 16 );
24
24
AudioBoardStream 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
27
27
28
28
// Arduino Setup
29
29
void setup (void ) {
@@ -39,7 +39,7 @@ void setup(void) {
39
39
i2s.begin (cfg);
40
40
41
41
// make sure that we have the correct number of channels set up
42
- csvStream .begin (info);
42
+ csvOutput .begin (info);
43
43
44
44
}
45
45
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ the ESP32 is acting as master.
30
30
I 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.
31
31
If it is working with 32 bit you can try to change it to 16bits which most of the time works as well:
32
32
33
- - CsvOutput<int16_t> csvStream (Serial);
33
+ - CsvOutput<int16_t> csvOutput (Serial);
34
34
- cfg.bits_per_sample = 16;
35
35
36
36
see streams-12s-serial_16_bit
Original file line number Diff line number Diff line change 12
12
13
13
AudioInfo info (44100 , 2 , 32 );
14
14
I2SStream 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
17
17
18
18
// Arduino Setup
19
19
void setup (void ) {
@@ -30,7 +30,7 @@ void setup(void) {
30
30
i2sStream.begin (cfg);
31
31
32
32
// make sure that we have the correct channels set up
33
- csvStream .begin (info);
33
+ csvOutput .begin (info);
34
34
35
35
}
36
36
Original file line number Diff line number Diff line change 12
12
13
13
AudioInfo info (44100 , 2 , 16 );
14
14
I2SStream 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
17
17
18
18
// Arduino Setup
19
19
void setup (void ) {
@@ -30,7 +30,7 @@ void setup(void) {
30
30
i2sStream.begin (cfg);
31
31
32
32
// make sure that we have the correct channels set up
33
- csvStream .begin (info);
33
+ csvOutput .begin (info);
34
34
35
35
}
36
36
Original file line number Diff line number Diff line change 12
12
13
13
AudioInfo info (44100 , 1 , 16 );
14
14
I2SStream 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
17
17
18
18
// Arduino Setup
19
19
void setup (void ) {
@@ -29,7 +29,7 @@ void setup(void) {
29
29
i2sStream.begin (cfg);
30
30
31
31
// make sure that we have the correct channels set up
32
- csvStream .begin (info);
32
+ csvOutput .begin (info);
33
33
34
34
}
35
35
Original file line number Diff line number Diff line change 13
13
14
14
15
15
AudioMP34DT05 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
18
18
19
19
// Arduino Setup
20
20
void setup (void ) {
@@ -31,7 +31,7 @@ void setup(void) {
31
31
mic.begin (cfg);
32
32
33
33
// make sure that we have the correct channels set up
34
- csvStream .begin (cfg);
34
+ csvOutput .begin (cfg);
35
35
36
36
Serial.println (" started" );
37
37
Original file line number Diff line number Diff line change 13
13
14
14
AudioInfo info (1600 , 1 , 16 );
15
15
VS1053Stream 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
18
18
19
19
// Arduino Setup
20
20
void setup (void ) {
@@ -27,7 +27,7 @@ void setup(void) {
27
27
in.begin (cfg);
28
28
29
29
// make sure that we have the correct channels set up
30
- csvStream .begin (info);
30
+ csvOutput .begin (info);
31
31
32
32
}
33
33
You can’t perform that action at this time.
0 commit comments