[flac-dev] Converting audio samples

2013-07-19 Thread Brendan Bolles
Hey everyone, I'm new to the world of audio, so can you please drop some very basic audio knowledge on me? What's the correct way to convert from float audio samples to integer ones like FLAC uses? If I'm converting to 8-bit, that has a range of -128 to 127, right? Do I multiply my float inpu

Re: [flac-dev] Converting audio samples

2013-07-19 Thread Martijn van Beurden
On 19-07-13 17:57, Brendan Bolles wrote: > If I'm converting to 8-bit, that has a range of -128 to 127, right? Do I > multiply my float input by 127 or 128? Depends on what you want to do, the range of values used in the float input etc. You have to take care of dithering too. I'd use a tool li

Re: [flac-dev] Converting audio samples

2013-07-19 Thread Brendan Bolles
On Jul 19, 2013, at 11:58 AM, Martijn van Beurden wrote: > Depends on what you want to do, the range of values used in the float > input etc. You have to take care of dithering too. I'd use a tool like > SoX because there are some very knowledgable people who thought it over. > > If you want to