android-opus-codec icon indicating copy to clipboard operation
android-opus-codec copied to clipboard

Two OPUS instances mixing audio

Open AFIDclan opened this issue 4 years ago • 3 comments

I have two decoders running in my application (both mono) and they work great individually, but as soon as I try to use them at the same time the output on both are garbled, and you can clearly hear audio leaking between the decoders. Is there a singleton decoder in the core of this library? Is this to be expected?

Thanks.

AFIDclan avatar Mar 28 '22 17:03 AFIDclan

Ahh it's because the wrapper class only holds one instance to the OpusCodec. I re-wrote the wrapper c++ and Java and it works now. Would that be helpful to make a pull request or is it needed?

AFIDclan avatar Mar 29 '22 22:03 AFIDclan