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
e2db546f
Unverified
Commit
e2db546f
authored
Mar 30, 2023
by
Wolle
Committed by
GitHub
Mar 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix timeout in audioheader when seting timeOffset()
parent
5d8075bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
src/Audio.cpp
src/Audio.cpp
+7
-7
src/Audio.h
src/Audio.h
+2
-2
No files found.
src/Audio.cpp
View file @
e2db546f
...
...
@@ -3,8 +3,8 @@
*
* Created on: Oct 26.2018
*
* Version 3.0.1
j
* Updated on: Mar
29
.2023
* Version 3.0.1
k
* Updated on: Mar
30
.2023
* Author: Wolle (schreibfaul1)
*
*/
...
...
@@ -2791,12 +2791,12 @@ void Audio::processLocalFile() {
InBuff
.
bytesWritten
(
bytesAddedToBuffer
);
}
if
(
!
f_stream
){
if
((
millis
()
-
ctime
)
>
timeout
)
{
log_e
(
"audioHeader reading timeout"
);
m_f_running
=
false
;
return
;
}
if
(
m_controlCounter
!=
100
)
{
if
((
millis
()
-
ctime
)
>
timeout
)
{
log_e
(
"audioHeader reading timeout"
);
m_f_running
=
false
;
return
;
}
if
(
InBuff
.
bufferFilled
()
>
maxFrameSize
){
// read the file header first
InBuff
.
bytesWasRead
(
readAudioHeader
(
InBuff
.
bufferFilled
()));
}
...
...
src/Audio.h
View file @
e2db546f
...
...
@@ -3,8 +3,8 @@
*
* Created on: Oct 28,2018
*
* Version 3.0.1
i
* Updated on: Mar
29
,2023
* Version 3.0.1
k
* Updated on: Mar
30
,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