[flac-dev] FLAC From 32 Bits

Ralph Giles giles at thaumas.net
Sun Jun 3 09:18:22 PDT 2012


On 12-06-02 6:14 PM, Chris wrote:
> Hello -
> 
> I am new to the list and new to FLAC and I have an encoding question. I 
> am using Goldwave to create a file which is 32 bits, signed, little 
> endian. I am doing this to avoid the added step of converting from 
> 16-bit samples to 32-bit samples. All works well except that encoding a 
> sine wave does not output an exact replica of the sine wave -- far from 
> it. When I encode a 16-bit sine wave and convert the 16-bit samples to 
> 32 bits, all works well but the conversion process is time consuming. 
> Changing the setting of FLAC__stream_encoder_set_bits_per_sample() 
> doesn't solve the problem. I am using the stream encoder because 
> eventually the output will go to a stream, but writing to a file for 
> testing purposes.
> 
> How do I encode to FLAC from native 32-bit files?

"Currently the reference encoder and decoders only support up to 24 bits
per sample," according to
http://flac.sourceforge.net/format.html#metadata_block_streaminfo

So while the flac format does support 32-bit samples, it looks like
you're out of luck for now. :-/

 -r


More information about the flac-dev mailing list