Skip to content

Clarity Around Inefficient Datasource Usage Mentioned in Docs #619

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

You must be logged in to vote

The documentation is saying that the seeking is the inefficient part. Each decoding backend is different. MP3, for example, does not have a built-in mechanism for accelerated seeking which means it needs to brute force it by seeking to the start of the sound and the reading and discarding every sample until the seek target which is extremely inefficient.

It does not make any sense to use the code you suggested. You need to get the idea of reusing data sources out of your head. It's not a thing in miniaudio. It's one data source instance to one sound instance in all cases, no exceptions.

Replies: 1 comment 1 reply

Comment options

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

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