Thanks. Yes. That's roughly what I thought. The audio library I'm using is the same. Floats [-1-1].
Out of curiosity, is float used because we never know the bit rate of the audio card? I mean, if Int16 were used, it wouldn't have high enough resolution for say 24bit audio cards?
Is float the generally accepted standard? Does 16bits worth of resolution exist between -1 and 1?
Sorry about all the obvious questions. I just need to make sure I understand the fundamentals.
On Mon, Dec 14, 2015 at 3:33 AM -0800, "obiwanjacobi"
<[email removed]> wrote:
Yes, a sample is a single value (float or double-for extra precision) in the [-1.0,1.0] range that represents the amplitude of the audio signal. The sample rate indicates how many of these values there are for every second.
If your audio library supports Int16 (or UInt16?) you have to map the values. So the full range of -1.0 -> 1.0 represents the full range if Int16.MinValue -> Int16.MaxValue. You can map these values linearly.
Check out the download page, there is a converter sample project that implements some methods of converting these samples.
There are also several other threads in the discussion board about this subject.
Hope it helps,