Skip to content

Commit

Permalink
AnalogAudioArduino
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Jun 22, 2024
1 parent ec440e7 commit 00276ae
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 10 deletions.
6 changes: 6 additions & 0 deletions examples/build-arch-log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@ esp32:esp32:esp32 ./examples-stream/streams-generator-serial -> rc=0
esp32:esp32:esp32c3 ./examples-stream/streams-generator-serial -> rc=0
esp32:esp32:esp32s3 ./examples-stream/streams-generator-serial -> rc=0
esp32:esp32:esp32s2 ./examples-stream/streams-generator-serial -> rc=0
esp32:esp32:esp32c6 ./examples-stream/streams-generator-serial -> rc=0
esp8266:esp8266:generic ./examples-stream/streams-generator-serial -> rc=0
rp2040:rp2040:generic ./examples-stream/streams-generator-serial -> rc=0
arduino:avr:nano ./examples-stream/streams-generator-serial -> rc=0
arduino:samd:arduino_zero_native ./examples-stream/streams-generator-serial -> rc=0
arduino:renesas_uno:unor4wifi ./examples-stream/streams-generator-serial -> rc=1
20 changes: 12 additions & 8 deletions src/AudioAnalog/AnalogAudioStream.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
#pragma once
#include "AudioConfig.h"
#if defined(USE_ANALOG)
#include "AudioAnalog/AnalogDriverBase.h"
#include "AudioAnalog/AnalogDriverESP32V1.h"
#include "AudioAnalog/AnalogDriverESP32.h"
#include "AudioAnalog/AnalogDriverMBED.h"

#if defined(USE_ANALOG_ARDUINO) || defined(DOXYGEN)
// Support AnalogAudioStream
#if defined(USE_ANALOG)
# include "AudioAnalog/AnalogDriverBase.h"
# include "AudioAnalog/AnalogDriverESP32V1.h"
# include "AudioAnalog/AnalogDriverESP32.h"
# include "AudioAnalog/AnalogDriverMBED.h"
# include "AudioAnalog/AnalogDriverArduino.h"
#endif

namespace audio_tools {

Expand Down Expand Up @@ -109,4 +108,9 @@ class AnalogAudioStream : public AudioStream {

}

#endif
#endif

// Support AnalogAudioArduino
#if defined(USE_TIMER)
# include "AudioAnalog/AnalogAudioArduino.h"
#endif
7 changes: 5 additions & 2 deletions src/AudioAnalog/AnalogDriverArduino.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#pragma once

#include <limits.h> // for INT_MIN and INT_MAX
#include "AudioConfig.h"
#if defined(USE_ANALOG_ARDUINO) || defined(DOXYGEN)

#include <limits.h> // for INT_MIN and INT_MAX
#include "AudioAnalog/AnalogAudioBase.h"
#include "AudioConfig.h"
#include "AudioTimer/AudioTimer.h"
#include "AudioTools/AudioStreams.h"
#include "AudioTools/AudioTypes.h"
Expand Down Expand Up @@ -47,3 +48,5 @@ class AnalogDriverArduino : public AnalogDriverBase {
using AnalogDriver = AnalogDriverArduino;

} // namespace audio_tools

#endif

0 comments on commit 00276ae

Please sign in to comment.