Skip to content

Commit 392e9e0

Browse files
committed
AnalgAudio Cleanup
1 parent 8f88b68 commit 392e9e0

File tree

13 files changed

+448
-383
lines changed

13 files changed

+448
-383
lines changed

examples/examples-basic-api/base-adc-a2dp/base-adc-a2dp.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* @brief We use a mcp6022 analog microphone as input and send the data to A2DP
2020
*/
2121

22-
AnalogAudio adc;
22+
AnalogAudioStream adc;
2323
BluetoothA2DPSource a2dp_source;
2424
// The data has a center of around 26427, so we we need to shift it down to bring the center to 0
2525
ConverterScaler<int16_t> scaler(1.0, -26427, 32700 );

examples/examples-basic-api/base-adc-serial/base-adc-serial.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* @brief We use a mcp6022 analog microphone on GPIO34 and write it to Serial
2020
*/
2121

22-
AnalogAudio adc;
22+
AnalogAudioStream adc;
2323
const int32_t max_buffer_len = 1024;
2424
uint8_t buffer[max_buffer_len];
2525
// The data has a center of around 26427, so we we need to shift it down to bring the center to 0

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void setup(void) {
2323
AudioLogger::instance().begin(Serial, AudioLogger::Info);
2424

2525
// start the analog output
26-
AnalogConfig config = out.defaultConfig(TX_MODE);
26+
auto config = out.defaultConfig(TX_MODE);
2727
config.sample_rate = sample_rate;
2828
out.begin(config);
2929

examples/examples-stream/streams-i2s-i2s/streams-i2s-i2s.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ void setup(void) {
3030
config.pin_ws = 14;
3131
config.pin_bck = 15;
3232
config.pin_data = 16;
33-
config.pin_data_in = 17;
34-
config.fixed_mclk = sample_rate * 256
35-
config.pin_mck = 2
33+
config.pin_data_rx = 17;
34+
//config.fixed_mclk = sample_rate * 256;
35+
// config.pin_mck = 2; // must be 0,1 or 2 - only for ESP_IDF_VERSION_MAJOR >= 4
3636
i2s.begin(config);
3737

3838
Serial.println("I2S started...");

examples/tests/test-memory-helix/test-memory-helix.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
URLStream url("SSID","password");
1515
I2SStream i2s; // final output of decoded stream
16-
VolumeOutput volume(i2s);
16+
VolumeStream volume(i2s);
1717
LogarithmicVolumeControl lvc(0.1);
1818
EncodedAudioStream dec(&volume,new MP3DecoderHelix()); // Decoding stream
1919
StreamCopy copier(dec, url); // copy url to decoder

0 commit comments

Comments
 (0)