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
e981b046
Unverified
Commit
e981b046
authored
Apr 06, 2023
by
Wolle
Committed by
GitHub
Apr 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Preparation for a new decoder
parent
e2db546f
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
72 additions
and
28 deletions
+72
-28
src/Audio.cpp
src/Audio.cpp
+64
-21
src/Audio.h
src/Audio.h
+8
-7
No files found.
src/Audio.cpp
View file @
e981b046
This diff is collapsed.
Click to expand it.
src/Audio.h
View file @
e981b046
...
...
@@ -4,7 +4,7 @@
* Created on: Oct 28,2018
*
* Version 3.0.1k
* Updated on:
Mar 30
,2023
* Updated on:
Apr 06
,2023
* Author: Wolle (schreibfaul1)
*/
...
...
@@ -453,7 +453,7 @@ private:
enum
:
int
{
M4A_BEGIN
=
0
,
M4A_FTYP
=
1
,
M4A_CHK
=
2
,
M4A_MOOV
=
3
,
M4A_FREE
=
4
,
M4A_TRAK
=
5
,
M4A_MDAT
=
6
,
M4A_ILST
=
7
,
M4A_MP4A
=
8
,
M4A_AMRDY
=
99
,
M4A_OKAY
=
100
};
enum
:
int
{
CODEC_NONE
=
0
,
CODEC_WAV
=
1
,
CODEC_MP3
=
2
,
CODEC_AAC
=
3
,
CODEC_M4A
=
4
,
CODEC_FLAC
=
5
,
CODEC_AACP
=
6
,
CODEC_OPUS
=
7
,
CODEC_OGG
=
8
};
CODEC_AACP
=
6
,
CODEC_OPUS
=
7
,
CODEC_OGG
=
8
,
CODEC_VORBIS
=
9
};
enum
:
int
{
ST_NONE
=
0
,
ST_WEBFILE
=
1
,
ST_WEBSTREAM
=
2
};
typedef
enum
{
LEFTCHANNEL
=
0
,
RIGHTCHANNEL
=
1
}
SampleIndex
;
typedef
enum
{
LOWSHELF
=
0
,
PEAKEQ
=
1
,
HIFGSHELF
=
2
}
FilterType
;
...
...
@@ -482,11 +482,12 @@ private:
std
::
vector
<
char
*>
m_playlistURL
;
// m3u8 streamURLs buffer
std
::
vector
<
uint32_t
>
m_hashQueue
;
const
size_t
m_frameSizeWav
=
1024
;
const
size_t
m_frameSizeMP3
=
1600
;
const
size_t
m_frameSizeAAC
=
1600
;
const
size_t
m_frameSizeFLAC
=
4096
*
4
;
const
size_t
m_frameSizeOPUS
=
1024
;
const
size_t
m_frameSizeWav
=
1024
;
const
size_t
m_frameSizeMP3
=
1600
;
const
size_t
m_frameSizeAAC
=
1600
;
const
size_t
m_frameSizeFLAC
=
4096
*
4
;
const
size_t
m_frameSizeOPUS
=
1024
;
const
size_t
m_frameSizeVORBIS
=
4096
*
2
;
static
const
uint8_t
m_tsPacketSize
=
188
;
static
const
uint8_t
m_tsHeaderSize
=
4
;
...
...
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