Skip to content
Discussion options

You must be logged in to vote

Mixing expects that you write an equal amout of data from all sources to the Mixer!

Mixing mp3 is tricky because the decoder provides huge arrays of PCM data: You might get away by making the buffers really big, but in any case you will need to query the system on how many WAV data you need to write, to keep things balanced!

A more effient way would be to split up the decoding result into smaller pieces (With a BufferedStream) and do the mixing of these smaller pieces in a CallbackStream.

See also this similar discussion....

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pschatzmann
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