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
1037680b
Unverified
Commit
1037680b
authored
Jul 16, 2022
by
Wolle
Committed by
GitHub
Jul 16, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
readMetadata() rewritten
parent
beb5ea49
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
80 deletions
+44
-80
src/Audio.cpp
src/Audio.cpp
+39
-75
src/Audio.h
src/Audio.h
+5
-5
No files found.
src/Audio.cpp
View file @
1037680b
This diff is collapsed.
Click to expand it.
src/Audio.h
View file @
1037680b
...
...
@@ -2,7 +2,7 @@
* Audio.h
*
* Created on: Oct 26,2018
* Updated on: Jul 1
1
,2022
* Updated on: Jul 1
6
,2022
* Author: Wolle (schreibfaul1)
*/
...
...
@@ -248,7 +248,7 @@ private:
bool
parseContentType
(
char
*
ct
);
bool
parseHttpResponseHeader
();
bool
initializeDecoder
();
bool
readMetadata
(
uint8
_t
b
,
bool
first
=
false
);
uint16_t
readMetadata
(
uint16
_t
b
,
bool
first
=
false
);
esp_err_t
I2Sstart
(
uint8_t
i2s_num
);
esp_err_t
I2Sstop
(
uint8_t
i2s_num
);
void
urlencode
(
char
*
buff
,
uint16_t
buffLen
,
bool
spacesOnly
=
false
);
...
...
@@ -459,13 +459,13 @@ private:
uint32_t
m_sampleRate
=
16000
;
uint32_t
m_bitRate
=
0
;
// current bitrate given fom decoder
uint32_t
m_avr_bitrate
=
0
;
// average bitrate, median computed by VBR
int
m_readbytes
=
0
;
// bytes read
int
m_metalen
=
0
;
// Number of bytes i
n metadata
int
m_readbytes
=
0
;
// bytes read
uint32_t
m_metacount
=
0
;
// counts down bytes betwee
n metadata
int
m_controlCounter
=
0
;
// Status within readID3data() and readWaveHeader()
int8_t
m_balance
=
0
;
// -16 (mute left) ... +16 (mute right)
uint8_t
m_vol
=
64
;
// volume
uint8_t
m_bitsPerSample
=
16
;
// bitsPerSample
uint8_t
m_channels
=
2
;
uint8_t
m_channels
=
2
;
uint8_t
m_i2s_num
=
I2S_NUM_0
;
// I2S_NUM_0 or I2S_NUM_1
uint8_t
m_playlistFormat
=
0
;
// M3U, PLS, ASX
uint8_t
m_m3u8codec
=
CODEC_NONE
;
// M4A
...
...
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