Fix issues with incorrect sample format on Mac, and low SNR on iOS