Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ESP32-audioI2S
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
ESP32-audioI2S
Commits
a4c3529c
Unverified
Commit
a4c3529c
authored
Aug 04, 2023
by
Wolle
Committed by
GitHub
Aug 04, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
in processWebFile() add DecoderFreeBuffers()
parent
24d87ba8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
src/Audio.cpp
src/Audio.cpp
+12
-3
src/Audio.h
src/Audio.h
+2
-2
No files found.
src/Audio.cpp
View file @
a4c3529c
...
...
@@ -3,8 +3,8 @@
*
* Created on: Oct 26.2018
*
* Version 3.0.
4
* Updated on:
Jul 23
.2023
* Version 3.0.
5
* Updated on:
Aug 04
.2023
* Author: Wolle (schreibfaul1)
*
*/
...
...
@@ -3084,7 +3084,16 @@ void Audio::processWebFile() {
if(bytesDecoded > 2){InBuff.bytesWasRead(bytesDecoded); return;}
}
}
stopSong(); // Correct close when play known length sound #74 and before callback #11
m_f_running = false;
m_streamType = ST_NONE;
if(m_codec == CODEC_MP3) MP3Decoder_FreeBuffers();
if(m_codec == CODEC_AAC) AACDecoder_FreeBuffers();
if(m_codec == CODEC_M4A) AACDecoder_FreeBuffers();
if(m_codec == CODEC_FLAC) FLACDecoder_FreeBuffers();
if(m_codec == CODEC_OPUS) OPUSDecoder_FreeBuffers();
if(m_codec == CODEC_VORBIS) VORBISDecoder_FreeBuffers();
if(m_f_tts){
AUDIO_INFO("End of speech: \"%s\"", m_lastHost);
if(audio_eof_speech) audio_eof_speech(m_lastHost);
...
...
src/Audio.h
View file @
a4c3529c
...
...
@@ -3,8 +3,8 @@
*
* Created on: Oct 28,2018
*
* Version 3.0.
3a
* Updated on:
Jul 20
.2023
* Version 3.0.
5
* Updated on:
Aug 04
.2023
* Author: Wolle (schreibfaul1)
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment