OutputMixer issue #1348
-
Hi! I'm trying to use the output mixer to mix two audio sources. The first one is from the BluetoothA2DPSink (channel 0), the second one from some audio files stored on an SD card that are played based on the click of some buttons (channel 1).
Then inside the stream reader callback of the BluetoothA2DPSink I do something like this:
availableForRead(channel) is a custom function that checks if the provided channel (buffer of the OutputMixer) contains data. Right after the first flush of the mixer, I get this warning and of course no actual sound is played: Any ideas of why is this happening or suggestions on how to improve this logic? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Just try to increase the copy buffer size that it defined in the begin of the output mixer |
Beta Was this translation helpful? Give feedback.
-
Hi Phil, thanks for your answer. I begin the mixer like this:
Shouldn't it be enough since the amount of data copied on each iteration is 1024 as well? |
Beta Was this translation helpful? Give feedback.
Just try to increase the copy buffer size that it defined in the begin of the output mixer