[wdmaudiodev] Re: AW: Re: bit transparency from app to WDM audio driver depending from API?
- From: Tim Roberts <timr@xxxxxxxxx>
- To: wdmaudiodev@xxxxxxxxxxxxx
- Date: Wed, 22 Aug 2018 11:15:24 -0700
Johannes Freyberger wrote:
I know, I have to scale to the range of -1.0 to +1.0 for float audio.
I do this by dividing by 32768 for 16 bit audio and by 8388608 for 24
But that's doesn't map the full range. 16-bit values run from -32768 to
+32767. So, with your division, you can get a value of -1.0, but you
can never reach +1.0.
I don't know if the kernel's conversion actually tries to achieve
[-1.0,1.0], or if they are satisfied with [-1.0,1.0).
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.
Other related posts: