File tree Expand file tree Collapse file tree 3 files changed +4
-10
lines changed
Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 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-
1311typedef int16_t sound_t ; // sound will be represented as int16_t (with 2 bytes)
1412uint16_t sample_rate=44100 ;
1513uint8_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);
Original file line number Diff line number Diff line change 88
99#include " AudioTools.h"
1010
11-
12-
1311// int pins[] = {22, 23};
1412int channels = 1 ;
1513uint16_t sample_rate=22000 ;
Original file line number Diff line number Diff 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);
You can’t perform that action at this time.
0 commit comments