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
81d6dfe6
Unverified
Commit
81d6dfe6
authored
Nov 26, 2022
by
Wolle
Committed by
GitHub
Nov 26, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
timer slowStreamDetection 1000ms
parent
ead22a0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/Audio.cpp
src/Audio.cpp
+1
-1
No files found.
src/Audio.cpp
View file @
81d6dfe6
...
...
@@ -4883,7 +4883,7 @@ void Audio::slowStreamDetection(uint32_t inBuffFilled, uint32_t maxFrameSize){
static
uint32_t
tmr_1s
=
millis
();
// timer 1 sec
static
bool
f_tmr_1s
=
false
;
static
uint8_t
cnt_slow
=
0
;
if
(
tmr_1s
+
1000
<
millis
())
{
f_tmr_1s
=
true
;
tmr_1s
=
millis
();}
if
(
tmr_1s
+
1000
<
millis
())
{
f_tmr_1s
=
true
;
tmr_1s
=
millis
()
+
1000
;}
if
(
m_codec
==
CODEC_WAV
)
maxFrameSize
/=
4
;
if
(
m_codec
==
CODEC_FLAC
)
maxFrameSize
/=
2
;
if
(
inBuffFilled
<
maxFrameSize
){
...
...
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