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
022eaa79
Unverified
Commit
022eaa79
authored
Sep 16, 2021
by
Wolle
Committed by
GitHub
Sep 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AACDecoder_IsInit()
preparations for m3u8 streams, get AACDecoder init status
parent
9783563c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
1 deletion
+34
-1
src/aac_decoder/aac_decoder.cpp
src/aac_decoder/aac_decoder.cpp
+33
-1
src/aac_decoder/aac_decoder.h
src/aac_decoder/aac_decoder.h
+1
-0
No files found.
src/aac_decoder/aac_decoder.cpp
View file @
022eaa79
...
...
@@ -3,7 +3,7 @@
* libhelix_HAACDECODER
*
* Created on: 26.10.2018
* Updated on: 10.0
4
.2021
* Updated on: 10.0
9
.2021
************************************************************************************/
#include "aac_decoder.h"
...
...
@@ -1765,6 +1765,38 @@ void AACDecoder_FreeBuffers(void) {
// log_i("AACDecoder: %lu bytes memory was freed", ESP.getFreeHeap() - i);
}
/***********************************************************************************************************************
* Function: AACDecoder_IsInit
*
* Description: returns AAC decoder initialization status
*
* Inputs: none
*
* Outputs: none
*
* Return: true if buffers allocated, otherwise false
**********************************************************************************************************************/
bool
AACDecoder_IsInit
(
void
)
{
if
(
m_AACDecInfo
&&
m_PSInfoBase
&&
m_pce
[
0
]){
return
true
;
}
return
false
;
}
/***********************************************************************************************************************
* Function: AACDecoder_FreeBuffers
*
* Description: allocate all the memory needed for the AAC decoder
*
* Inputs: none
*
* Outputs: none
*
* Return: none
**********************************************************************************************************************/
/***********************************************************************************************************************
* Function: AACFindSyncWord
*
...
...
src/aac_decoder/aac_decoder.h
View file @
022eaa79
...
...
@@ -431,6 +431,7 @@ typedef struct _PSInfoSBR {
bool
AACDecoder_AllocateBuffers
(
void
);
int
AACFlushCodec
();
void
AACDecoder_FreeBuffers
(
void
);
bool
AACDecoder_IsInit
(
void
);
int
AACFindSyncWord
(
uint8_t
*
buf
,
int
nBytes
);
int
AACSetRawBlockParams
(
int
copyLast
,
int
nChans
,
int
sampRateCore
,
int
profile
);
int
AACDecode
(
uint8_t
*
inbuf
,
int
*
bytesLeft
,
short
*
outbuf
);
...
...
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