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
86b8d634
Commit
86b8d634
authored
Apr 15, 2024
by
schreibfaul1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add filename in "closing audio file"
parent
3be69024
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
src/Audio.cpp
src/Audio.cpp
+4
-6
src/Audio.h
src/Audio.h
+2
-2
No files found.
src/Audio.cpp
View file @
86b8d634
...
...
@@ -3,8 +3,8 @@
*
* Created on: Oct 26.2018
*
* Version 3.0.9
d
* Updated on: Apr 1
2
.2024
* Version 3.0.9
e
* Updated on: Apr 1
5
.2024
* Author: Wolle (schreibfaul1)
*
*/
...
...
@@ -2237,14 +2237,12 @@ uint32_t Audio::stopSong() {
if
(
getDatamode
()
==
AUDIO_LOCALFILE
)
{
m_streamType
=
ST_NONE
;
pos
=
getFilePos
()
-
inBufferFilled
();
audiofile
.
close
();
AUDIO_INFO
(
"Closing audio file"
);
}
}
if
(
audiofile
)
{
// added this before putting 'm_f_localfile = false' in stopSong(); shoulf never occur....
AUDIO_INFO
(
"Closing audio file
\"
%s
\"
"
,
audiofile
.
name
());
audiofile
.
close
();
AUDIO_INFO
(
"Closing audio file"
);
}
memset
(
m_outBuff
,
0
,
m_outbuffSize
);
// Clear OutputBuffer
memset
(
m_filterBuff
,
0
,
sizeof
(
m_filterBuff
));
// Clear FilterBuffer
...
...
@@ -3132,7 +3130,7 @@ void Audio::processLocalFile() {
m_f_running
=
false
;
m_streamType
=
ST_NONE
;
audiofile
.
close
();
AUDIO_INFO
(
"Closing audio file
"
);
AUDIO_INFO
(
"Closing audio file
\"
%s
\"
"
,
afn
);
if
(
m_codec
==
CODEC_MP3
)
MP3Decoder_FreeBuffers
();
if
(
m_codec
==
CODEC_AAC
)
AACDecoder_FreeBuffers
();
...
...
src/Audio.h
View file @
86b8d634
...
...
@@ -3,8 +3,8 @@
*
* Created on: Oct 28,2018
*
* Version 3.0.9
c
* Updated on: Apr
08
.2024
* Version 3.0.9
e
* Updated on: Apr
15
.2024
* 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