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
afb005a6
Commit
afb005a6
authored
Feb 08, 2024
by
schreibfaul1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compute fragments of blockpictures
parent
53308e3b
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
245 additions
and
174 deletions
+245
-174
src/Audio.cpp
src/Audio.cpp
+3
-6
src/vorbis_decoder/vorbis_decoder.cpp
src/vorbis_decoder/vorbis_decoder.cpp
+237
-167
src/vorbis_decoder/vorbis_decoder.h
src/vorbis_decoder/vorbis_decoder.h
+5
-1
No files found.
src/Audio.cpp
View file @
afb005a6
...
...
@@ -5880,14 +5880,11 @@ uint8_t Audio::determineOggCodec(uint8_t* data, uint16_t len) {
}
data
+=
27
;
idx
=
specialIndexOf
(
data
,
"OpusHead"
,
40
);
if
(
idx
>=
0
)
return
CODEC_OPUS
;
if
(
idx
>=
0
)
{
return
CODEC_OPUS
;
}
idx
=
specialIndexOf
(
data
,
"fLaC"
,
40
);
if
(
idx
>=
0
)
return
CODEC_FLAC
;
if
(
idx
>=
0
)
{
return
CODEC_FLAC
;
}
idx
=
specialIndexOf
(
data
,
"vorbis"
,
40
);
if
(
idx
>=
0
)
{
log_i
(
"vorbis"
);
return
CODEC_VORBIS
;
}
if
(
idx
>=
0
)
{
return
CODEC_VORBIS
;
}
return
CODEC_NONE
;
}
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
src/vorbis_decoder/vorbis_decoder.cpp
View file @
afb005a6
This diff is collapsed.
Click to expand it.
src/vorbis_decoder/vorbis_decoder.h
View file @
afb005a6
...
...
@@ -230,10 +230,14 @@ uint16_t VORBISGetOutputSamps();
char
*
VORBISgetStreamTitle
();
int
VORBISFindSyncWord
(
unsigned
char
*
buf
,
int
nBytes
);
int
VORBISparseOGG
(
uint8_t
*
inbuf
,
int
*
bytesLeft
);
int
vorbisDecodePage1
(
uint8_t
*
inbuf
,
int
*
bytesLeft
,
uint32_t
segmentLength
);
int
vorbisDecodePage2
(
uint8_t
*
inbuf
,
int
*
bytesLeft
,
uint32_t
segmentLength
);
int
vorbisDecodePage3
(
uint8_t
*
inbuf
,
int
*
bytesLeft
,
uint32_t
segmentLength
);
int
vorbisDecodePage4
(
uint8_t
*
inbuf
,
int
*
bytesLeft
,
uint32_t
segmentLength
,
short
*
outbuf
);
int
parseVorbisComment
(
uint8_t
*
inbuf
,
int16_t
nBytes
);
int
parseVorbisCodebook
();
int
parseVorbisFirstPacket
(
uint8_t
*
inbuf
,
int16_t
nBytes
);
uint16_t
continuedOggPackets
(
uint8_t
*
inbuf
,
int
*
bytesLeft
);
uint16_t
continuedOggPackets
(
uint8_t
*
inbuf
);
int
vorbis_book_unpack
(
codebook_t
*
s
);
uint32_t
decpack
(
int32_t
entry
,
int32_t
used_entry
,
uint8_t
quantvals
,
codebook_t
*
b
,
int
maptype
);
int
oggpack_eop
();
...
...
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