You calculate the length with this instead of the current method in the source code:
Also, the size of the PCM buffer didn't take number of channels into account, I think.
This old code:
Needs to become this:
Also, the size of the PCM buffer didn't take number of channels into account, I think.
This old code:
Needs to become this: