Skip to content

Sorry, but where exactly do I start with the example provided? #369

Answered by mackron
patrikpatrik asked this question in Q&A
Discussion options

You must be logged in to vote

The data callback will have a parameter called frameCount which is how many frames you should be reading from the decoder. If there are less frames available for decoding than frameCount it's all good. When you read, just read straight into the data callback's output buffer (pOutput in the examples). You just need to make sure the decoder and device are configured with the same format or else you'll get horrible glitching.

A way to "pause" decoding is to simply not read from the decoder in the data callback. An important concept to consider is that the decoder and the device are entirely decoupled. If you don't read anything from the decoder you'll simply not hear anything and therefore t…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@patrikpatrik
Comment options

Comment options

You must be logged in to vote
1 reply
@patrikpatrik
Comment options

Answer selected by patrikpatrik
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