Skip to content

Misleading log output #10

Answered by pschatzmann
stevstrong asked this question in Q&A
Discussion options

You must be logged in to vote

If I remember right the decoder grabs as much as is able to process and reports back how may bytes it has processed.
In my logic I just make sure that if I submit some data to decode, I have at least one valid frame.
From the reported processed end position, I know how many data I can remove from the buffer.

ps. I admit that the implementation is a bit messy and I would do it differently today because I could use functionality from the AudioTools that were just not available yet, when this has been implemented.

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by pschatzmann
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #6 on February 23, 2024 14:30.