mozilla / cubeb

Cross platform audio library
ISC License
439 stars 124 forks source link

rounding through intrinsics #711

Open ad8e opened 2 years ago

ad8e commented 2 years ago

I have not tested these changes. It really depends if you want intrinsics or not; let me know to continue or not. This patch is not to be accepted as-is.

The android build does not compile if the mixer is changed, so that will be reverted.

The old function lrint throws exceptions on invalid inputs, and my guess is that is an incidental consequence rather than something cubeb is looking for. The intrinsic does not throw.