Unverified Commit e344dfbc authored by Wolle's avatar Wolle Committed by GitHub

remove workaround (noise after stopSong())

parent 40c2d463
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* *
* Created on: Oct 26.2018 * Created on: Oct 26.2018
* *
* Version 3.0.8l * Version 3.0.8m
* Updated on: Feb 08.2024 * Updated on: Feb 15.2024
* Author: Wolle (schreibfaul1) * Author: Wolle (schreibfaul1)
* *
*/ */
...@@ -296,7 +296,6 @@ esp_err_t Audio::I2Sstop(uint8_t i2s_num) { ...@@ -296,7 +296,6 @@ esp_err_t Audio::I2Sstop(uint8_t i2s_num) {
//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
void Audio::setDefaults() { void Audio::setDefaults() {
stopSong(); stopSong();
setSampleRate(16000); // ESP32-S3 -> reduce SR, if 48000Hz a connect to another URL is impossible
initInBuff(); // initialize InputBuffer if not already done initInBuff(); // initialize InputBuffer if not already done
InBuff.resetBuffer(); InBuff.resetBuffer();
MP3Decoder_FreeBuffers(); MP3Decoder_FreeBuffers();
...@@ -3127,7 +3126,6 @@ void Audio::processLocalFile() { ...@@ -3127,7 +3126,6 @@ void Audio::processLocalFile() {
if(m_codec == CODEC_FLAC) FLACDecoder_FreeBuffers(); if(m_codec == CODEC_FLAC) FLACDecoder_FreeBuffers();
if(m_codec == CODEC_OPUS) OPUSDecoder_FreeBuffers(); if(m_codec == CODEC_OPUS) OPUSDecoder_FreeBuffers();
if(m_codec == CODEC_VORBIS) VORBISDecoder_FreeBuffers(); if(m_codec == CODEC_VORBIS) VORBISDecoder_FreeBuffers();
setSampleRate(16000); // workaround OPUS48k ESP32-S3 ESP-IDF Version: 4.4.5 - reduce sampRate because need DMA interrupt
AUDIO_INFO("End of file \"%s\"", afn); AUDIO_INFO("End of file \"%s\"", afn);
if(audio_eof_mp3) audio_eof_mp3(afn); if(audio_eof_mp3) audio_eof_mp3(afn);
if(afn) { if(afn) {
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* *
* Created on: Oct 28,2018 * Created on: Oct 28,2018
* *
* Version 3.0.8l * Version 3.0.8m
* Updated on: Feb 08.2024 * Updated on: Feb 15.2024
* Author: Wolle (schreibfaul1) * Author: Wolle (schreibfaul1)
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment