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
3aef9cfb
Unverified
Commit
3aef9cfb
authored
Jan 19, 2024
by
Wolle
Committed by
GitHub
Jan 19, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
detect opus band
only full band supported
parent
9140af21
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
src/opus_decoder/opus_decoder.cpp
src/opus_decoder/opus_decoder.cpp
+4
-1
src/opus_decoder/opus_decoder.h
src/opus_decoder/opus_decoder.h
+4
-1
No files found.
src/opus_decoder/opus_decoder.cpp
View file @
3aef9cfb
...
...
@@ -3,7 +3,7 @@
* based on Xiph.Org Foundation celt decoder
*
* Created on: 26.01.2023
* Updated on:
23.12.2023
* Updated on:
19.01.2024
*/
//----------------------------------------------------------------------------------------------------------------------
// O G G / O P U S I M P L.
...
...
@@ -255,6 +255,9 @@ int parseOpusTOC(uint8_t TOC_Byte){ // https://www.rfc-editor.org/rfc/rfc6716
if
(
configNr
<
12
)
return
ERR_OPUS_SILK_MODE_UNSUPPORTED
;
if
(
configNr
<
16
)
return
ERR_OPUS_HYBRID_MODE_UNSUPPORTED
;
if
(
configNr
<
20
)
return
ERR_OPUS_NARROW_BAND_UNSUPPORTED
;
if
(
configNr
<
24
)
return
ERR_OPUS_WIDE_BAND_UNSUPPORTED
;
if
(
configNr
<
28
)
return
ERR_OPUS_SUPER_WIDE_BAND_UNSUPPORTED
;
return
configNr
;
}
...
...
src/opus_decoder/opus_decoder.h
View file @
3aef9cfb
...
...
@@ -13,7 +13,10 @@ enum : int8_t {OPUS_PARSE_OGG_DONE = 100,
ERR_OPUS_DECODER_ASYNC
=
-
4
,
ERR_OPUS_SILK_MODE_UNSUPPORTED
=
-
5
,
ERR_OPUS_HYBRID_MODE_UNSUPPORTED
=
-
6
,
ERR_OPUS_OGG_SYNC_NOT_FOUND
=
-
7
,
ERR_OPUS_NARROW_BAND_UNSUPPORTED
=
-
7
,
ERR_OPUS_WIDE_BAND_UNSUPPORTED
=
-
8
,
ERR_OPUS_SUPER_WIDE_BAND_UNSUPPORTED
=
-
9
,
ERR_OPUS_OGG_SYNC_NOT_FOUND
=
-
10
,
ERR_OPUS_CELT_BAD_ARG
=
-
18
,
ERR_OPUS_CELT_INTERNAL_ERROR
=
-
19
,
ERR_OPUS_CELT_UNIMPLEMENTED
=
-
20
,
...
...
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