When calculating the conversion buffer size, don't hard-code the formulas for only mono<->stereo.
Attach a file by drag & drop or click to upload