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
7acd05bf
Unverified
Commit
7acd05bf
authored
Nov 24, 2022
by
Wolle
Committed by
GitHub
Nov 24, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new ogg impl.
parent
07b8affe
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
249 deletions
+31
-249
src/Audio.cpp
src/Audio.cpp
+28
-244
src/Audio.h
src/Audio.h
+3
-5
No files found.
src/Audio.cpp
View file @
7acd05bf
This diff is collapsed.
Click to expand it.
src/Audio.h
View file @
7acd05bf
...
...
@@ -2,7 +2,7 @@
* Audio.h
*
* Created on: Oct 28,2018
* Updated on: Nov 2
2
,2022
* Updated on: Nov 2
4
,2022
* Author: Wolle (schreibfaul1)
*/
...
...
@@ -242,7 +242,6 @@ private:
int
read_FLAC_Header
(
uint8_t
*
data
,
size_t
len
);
int
read_ID3_Header
(
uint8_t
*
data
,
size_t
len
);
int
read_M4A_Header
(
uint8_t
*
data
,
size_t
len
);
int
read_OGG_Header
(
uint8_t
*
data
,
size_t
len
);
size_t
process_m3u8_ID3_Header
(
uint8_t
*
packet
);
bool
setSampleRate
(
uint32_t
hz
);
bool
setBitsPerSample
(
int
bits
);
...
...
@@ -430,7 +429,7 @@ private:
}
private:
const
char
*
codecname
[
9
]
=
{
"unknown"
,
"WAV"
,
"MP3"
,
"AAC"
,
"M4A"
,
"FLAC"
,
"OGG"
,
"OGG FLAC"
,
"OPUS"
};
const
char
*
codecname
[
9
]
=
{
"unknown"
,
"WAV"
,
"MP3"
,
"AAC"
,
"M4A"
,
"FLAC"
};
enum
:
int
{
APLL_AUTO
=
-
1
,
APLL_ENABLE
=
1
,
APLL_DISABLE
=
0
};
enum
:
int
{
EXTERNAL_I2S
=
0
,
INTERNAL_DAC
=
1
,
INTERNAL_PDM
=
2
};
enum
:
int
{
FORMAT_NONE
=
0
,
FORMAT_M3U
=
1
,
FORMAT_PLS
=
2
,
FORMAT_ASX
=
3
,
FORMAT_M3U8
=
4
};
...
...
@@ -440,9 +439,8 @@ private:
FLAC_SEEK
=
6
,
FLAC_VORBIS
=
7
,
FLAC_CUESHEET
=
8
,
FLAC_PICTURE
=
9
,
FLAC_OKAY
=
100
};
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
{
OGG_BEGIN
=
0
,
OGG_MAGIC
=
1
,
OGG_HEADER
=
2
,
OGG_FIRST
=
3
,
OGG_AMRDY
=
99
,
OGG_OKAY
=
100
};
enum
:
int
{
CODEC_NONE
=
0
,
CODEC_WAV
=
1
,
CODEC_MP3
=
2
,
CODEC_AAC
=
3
,
CODEC_M4A
=
4
,
CODEC_FLAC
=
5
,
CODEC_
OGG
=
6
,
CODEC_OGG_FLAC
=
7
,
CODEC_OGG_OPUS
=
8
,
CODEC_AACP
=
9
};
CODEC_
AACP
=
6
};
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
;
...
...
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