Allow to export to FLAC 32 bit

I try to export audio to FLAC format and it says that max is 24 bits. I know that format allows 32. So can you pleas implement more bits in export format.

From the official FLAC documentation (

(bits per sample)-1. FLAC supports from 4 to 32 bits per sample. Currently the reference encoder and decoders only support up to 24 bits per sample.

Audacity uses the official encoder library from Xiph, which is the reference implementation.

At higher bit formats, the space saving achieved by FLAC is greatly reduced. For 32-bit you will probably achieve better space saving simply by ZIP’ing a WAV file, or better, use 7-zip.

I’ve just tested a 32-bit WAV file. Here are the results.
(The FLAC is a 24-bit FLAC. A 32-bit FLAC file would be bigger):


Compress ratio depends on source file. Some music compress better, others got less effect.
auda multi chan size.png
This track have 6 channels. wav is 32 bit signed. flac is 24 bits.
7z have slow time to compress (and decompress!) comparing to zip.
I doubt that Messenger I’m using can play tracks from archives. But I’m sure it play flac and wav.

I see.

I just tried with FFmpeg, but that only supports 16 bit and 24 bit Flac.

but probably can’t play 32-bit FLAC. I’ve had a good look around and 32-bit FLAC codecs don’t seem to exist.

From Wikipedia:

The FLAC format supports only integer samples, not floating-point. It can handle any PCM bit resolution from 4 to 32 bits per sample, any sampling rate from 1 Hz to 65,535 Hz in 1 Hz increments or from 10 Hz to 655,350 Hz in 10 Hz increments, and any number of channels from 1 to 8.[10] To date (version 1.3.3 of the reference encoder), > FLAC encoding is limited to 24 bits per sample since no encoder for 32 bits per sample exists.> [11]