From 91c45a54bfc276b0057f14307e41322fddc974a2 Mon Sep 17 00:00:00 2001 From: Hema2-official <49586027+Hema2-official@users.noreply.github.com> Date: Thu, 4 Apr 2024 22:34:27 +0200 Subject: [PATCH] Clean up --- src/AudioOutputI2SNoDACS3.cpp | 6 +++--- src/AudioOutputI2SNoDACS3.h | 17 ++++++++--------- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/src/AudioOutputI2SNoDACS3.cpp b/src/AudioOutputI2SNoDACS3.cpp index a4b9052..07c2747 100644 --- a/src/AudioOutputI2SNoDACS3.cpp +++ b/src/AudioOutputI2SNoDACS3.cpp @@ -1,8 +1,8 @@ /* AudioOutputI2SNoDACS3 - Base class for I2S interface port + Class for outputting PDM audio on the ESP32-S3 without an external DAC - Copyright (C) 2017 Earle F. Philhower, III + Copyright (C) 2024 Hema2 This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,10 +18,10 @@ along with this program. If not, see . */ -#include #include "AudioOutputI2SNoDACS3.h" #if CONFIG_IDF_TARGET_ESP32S3 + AudioOutputI2SNoDACS3::AudioOutputI2SNoDACS3(int doutPin, int dummyPin, int port, int dma_buf_count) { this->doutPin = (gpio_num_t)doutPin; diff --git a/src/AudioOutputI2SNoDACS3.h b/src/AudioOutputI2SNoDACS3.h index f1ca8ac..02806b0 100644 --- a/src/AudioOutputI2SNoDACS3.h +++ b/src/AudioOutputI2SNoDACS3.h @@ -1,8 +1,8 @@ /* - AudioOutputI2S - Base class for an I2S output port + AudioOutputI2SNoDACS3 + Class for outputting PDM audio on the ESP32-S3 without an external DAC - Copyright (C) 2017 Earle F. Philhower, III + Copyright (C) 2024 Hema2 This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,10 +20,12 @@ #pragma once +#if CONFIG_IDF_TARGET_ESP32S3 + #include "AudioOutput.h" #include "driver/i2s.h" +#include -#if CONFIG_IDF_TARGET_ESP32S3 class AudioOutputI2SNoDACS3 : public AudioOutput { public: @@ -54,9 +56,6 @@ class AudioOutputI2SNoDACS3 : public AudioOutput gpio_num_t doutPin; gpio_num_t dummyPin; - -#if defined(ARDUINO_ARCH_RP2040) - I2S i2s; -#endif }; -#endif \ No newline at end of file + +#endif // CONFIG_IDF_TARGET_ESP32S3 \ No newline at end of file