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
47a1d62e
Unverified
Commit
47a1d62e
authored
Jan 08, 2023
by
Wolle
Committed by
GitHub
Jan 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add stopSong() if local file is interrupted and typo correction
parent
3a3a8b72
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
7 deletions
+8
-7
src/Audio.cpp
src/Audio.cpp
+4
-3
src/Audio.h
src/Audio.h
+1
-1
src/flac_decoder/flac_decoder.cpp
src/flac_decoder/flac_decoder.cpp
+1
-1
src/flac_decoder/flac_decoder.h
src/flac_decoder/flac_decoder.h
+2
-2
No files found.
src/Audio.cpp
View file @
47a1d62e
...
...
@@ -3,8 +3,8 @@
*
* Created on: Oct 26.2018
*
* Version 2.0.7
j
* Updated on: Jan 0
6
.2023
* Version 2.0.7
k
* Updated on: Jan 0
8
.2023
* Author: Wolle (schreibfaul1)
*
*/
...
...
@@ -301,6 +301,7 @@ Audio::~Audio() {
}
//---------------------------------------------------------------------------------------------------------------------
void
Audio
::
setDefaults
()
{
stopSong
();
initInBuff
();
// initialize InputBuffer if not already done
InBuff
.
resetBuffer
();
MP3Decoder_FreeBuffers
();
...
...
@@ -3799,7 +3800,7 @@ int Audio::sendBytes(uint8_t* data, size_t len) {
}
if
(
m_codec
==
CODEC_FLAC
){
m_validSamples
=
FLACGetOutputSamps
()
/
getChannels
();
char
*
st
=
FLACgetStrea
n
Title
();
char
*
st
=
FLACgetStrea
m
Title
();
if
(
st
){
AUDIO_INFO
(
st
);
if
(
audio_showstreamtitle
)
audio_showstreamtitle
(
st
);
...
...
src/Audio.h
View file @
47a1d62e
...
...
@@ -2,7 +2,7 @@
* Audio.h
*
* Created on: Oct 28,2018
* Updated on: Jan 0
6
,2023
* Updated on: Jan 0
8
,2023
* Author: Wolle (schreibfaul1)
*/
...
...
src/flac_decoder/flac_decoder.cpp
View file @
47a1d62e
...
...
@@ -4,7 +4,7 @@
* adapted to ESP32
*
* Created on: Jul 03,2020
* Updated on:
Nov 25,2022
* Updated on:
Jan 08,2023
*
* Author: Wolle
*
...
...
src/flac_decoder/flac_decoder.h
View file @
47a1d62e
...
...
@@ -2,7 +2,7 @@
* flac_decoder.h
*
* Created on: Jul 03,2020
* Updated on:
Nov 26,2022
* Updated on:
Jan 08,2023
*
* Author: wolle
*
...
...
@@ -145,7 +145,7 @@ typedef struct FLACFrameHeader_t {
int
FLACFindSyncWord
(
unsigned
char
*
buf
,
int
nBytes
);
boolean
FLACFindMagicWord
(
unsigned
char
*
buf
,
int
nBytes
);
boolean
FLACFindStreamTitle
(
unsigned
char
*
buf
,
int
nBytes
);
char
*
FLACgetStrea
n
Title
();
char
*
FLACgetStrea
m
Title
();
int
FLACparseOggHeader
(
unsigned
char
*
buf
);
bool
FLACDecoder_AllocateBuffers
(
void
);
void
FLACDecoder_ClearBuffer
();
...
...
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