[flac-dev] Encoder example for 24-bit files

Jose Pablo Carballo jose.carballo at ridgerun.com
Thu Aug 14 06:11:06 PDT 2014

On Thu, Aug 14, 2014 at 1:13 AM, Martijn van Beurden <mvanb1 at gmail.com> wrote:
> Op 14-08-14 om 02:15 schreef Jose Pablo Carballo:
>> Now I've been trying to modify this example to encode a 2ch, 24 bps,
>> 96000 sample rate WAV file. I have to say I'm a bit lost on how I
>> should read the input file in this case, and how should I pack the
>> data to feed the encoder. Any guidance regarding the use of libFLAC,
>> the understanding of the format, or anything else that you can notice
>> where I'm complete lost, I'll appreciate your help.
> I recommend taking a look at the API documentation:
> http://xiph.org/flac/api/group__flac__stream__encoder.html It
> looks like you haven't used
> FLAC__stream_encoder_set_sample_rate() and
> FLAC__stream_encoder_set_bits_per_sample() for example.

Well, my modifications are over the encode encoder test program:
. It does call those setters. What I'm trying to do is to convert this
example to work with a 96000 sample rate and 24 bits per sample.

More information about the flac-dev mailing list