Skip to content

Commit 8f88b68

Browse files
committed
Cleanup samples
1 parent daeff63 commit 8f88b68

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
/**
2-
* @file streams-generator-dac.ino
2+
* @file streams-generator-analog.ino
33
* @author Phil Schatzmann
4-
* @brief see https://github.com/pschatzmann/arduino-audio-tools/blob/main/examples/examples-stream/streams-generator-dac/README.md
4+
* @brief see https://github.com/pschatzmann/arduino-audio-tools/blob/main/examples/examples-stream/streams-generator-analog/README.md
55
* @author Phil Schatzmann
66
* @copyright GPLv3
77
**/
88

99
#include "AudioTools.h"
1010

11-
12-
1311
typedef int16_t sound_t; // sound will be represented as int16_t (with 2 bytes)
1412
uint16_t sample_rate=44100;
1513
uint8_t channels = 2; // The stream will have 2 channels
@@ -24,8 +22,7 @@ void setup(void) {
2422
Serial.begin(115200);
2523
AudioLogger::instance().begin(Serial, AudioLogger::Info);
2624

27-
28-
// start the bluetooth
25+
// start the analog output
2926
AnalogConfig config = out.defaultConfig(TX_MODE);
3027
config.sample_rate = sample_rate;
3128
out.begin(config);

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88

99
#include "AudioTools.h"
1010

11-
12-
1311
//int pins[] = {22, 23};
1412
int channels = 1;
1513
uint16_t sample_rate=22000;

src/AudioPWM/PWMAudioESP32.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class PWMAudioStreamESP32 : public PWMAudioStreamBase {
4141

4242
// Ends the output
4343
virtual void end(){
44-
LOGD(LOG_METHOD);
44+
LOGD(LOG_METHOD);
4545
timerAlarmDisable(timer);
4646
for (int j=0;j<audio_config.channels;j++){
4747
ledcDetachPin(pins[j].gpio);
@@ -99,7 +99,6 @@ class PWMAudioStreamESP32 : public PWMAudioStreamBase {
9999
}
100100
}
101101

102-
103102
/// Setup ESP32 timer with callback
104103
virtual void setupTimer() {
105104
LOGD(LOG_METHOD);

0 commit comments

Comments
 (0)