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
708f6ed7
Unverified
Commit
708f6ed7
authored
Jul 19, 2021
by
Wolle
Committed by
GitHub
Jul 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
smaller routines for audioHeader and playlistData
parent
8cbdf669
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
319 additions
and
360 deletions
+319
-360
src/Audio.cpp
src/Audio.cpp
+315
-355
src/Audio.h
src/Audio.h
+4
-5
No files found.
src/Audio.cpp
View file @
708f6ed7
This diff is collapsed.
Click to expand it.
src/Audio.h
View file @
708f6ed7
...
...
@@ -2,7 +2,7 @@
* Audio.h
*
* Created on: Oct 26,2018
* Updated on:
May 15
,2021
* Updated on:
Jul 19
,2021
* Author: Wolle (schreibfaul1)
*/
...
...
@@ -191,6 +191,7 @@ private:
void
initInBuff
();
void
processLocalFile
();
void
processWebStream
();
void
processPlayListData
();
void
showCodecParams
();
int
findNextSync
(
uint8_t
*
data
,
size_t
len
);
int
sendBytes
(
uint8_t
*
data
,
size_t
len
);
...
...
@@ -213,9 +214,8 @@ private:
int32_t
Gain
(
int16_t
s
[
2
]);
bool
fill_InputBuf
();
void
showstreamtitle
(
const
char
*
ml
);
void
parsePlaylistData
(
const
char
*
pd
);
void
parseAudioHeader
(
const
char
*
ah
);
bool
parseContentType
(
const
char
*
ct
);
void
processAudioHeaderData
();
void
processControlData
(
uint8_t
b
);
esp_err_t
I2Sstart
(
uint8_t
i2s_num
);
esp_err_t
I2Sstop
(
uint8_t
i2s_num
);
...
...
@@ -309,8 +309,8 @@ private:
const
size_t
m_frameSizeFLAC
=
4096
*
4
;
char
chbuf
[
256
];
char
m_plsURL
[
256
];
// URL found in playlist
char
m_lastHost
[
256
];
// Store the last URL to a webstream
char
m_line
[
512
];
// stores plsLine or metaLine
filter_t
m_filter
[
3
];
// digital filters
size_t
m_id3Size
=
0
;
// length id3 tag
size_t
m_wavHeaderSize
=
0
;
...
...
@@ -342,7 +342,6 @@ private:
uint16_t
m_flacMaxBlockSize
=
0
;
// can be read out in the FLAC file header
uint32_t
m_flacTotalSamplesInStream
=
0
;
// can be read out in the FLAC file header
uint32_t
m_metaint
=
0
;
// Number of databytes between metadata
uint32_t
m_totalcount
=
0
;
// Counter mp3 data
uint32_t
m_chunkcount
=
0
;
// Counter for chunked transfer
uint32_t
m_t0
=
0
;
// store millis(), is needed for a small delay
uint32_t
m_metaCount
=
0
;
// Bytecounter between metadata
...
...
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