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
3e52d8ee
Unverified
Commit
3e52d8ee
authored
Oct 19, 2021
by
Wolle
Committed by
GitHub
Oct 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix DivByZero exception #209
parent
adc3c399
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/Audio.cpp
src/Audio.cpp
+5
-2
No files found.
src/Audio.cpp
View file @
3e52d8ee
...
...
@@ -2,7 +2,7 @@
* Audio.cpp
*
* Created on: Oct 26,2018
* Updated on: Oct 1
3
,2021
* Updated on: Oct 1
9
,2021
* Author: Wolle (schreibfaul1)
*
*/
...
...
@@ -311,7 +311,7 @@ void Audio::setDefaults() {
m_LFcount
=
0
;
// For end of header detection
m_st_remember
=
0
;
// Delete the last streamtitle hash
m_controlCounter
=
0
;
// Status within readID3data() and readWaveHeader()
m_channels
=
0
;
m_channels
=
2
;
// assume stereo #209
//TEST loop
m_file_size
=
0
;
...
...
@@ -4040,6 +4040,9 @@ bool Audio::setChannels(int ch) {
return
true
;
}
uint8_t
Audio
::
getChannels
(){
if
(
m_channels
==
0
)
{
// this should not happen! #209
m_channels
=
2
;
}
return
m_channels
;
}
//---------------------------------------------------------------------------------------------------------------------
...
...
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