On Thu, Aug 14, 2014 at 1:13 AM, Martijn van Beurden <[email protected]> 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: https://git.xiph.org/?p=flac.git;a=blob;f=examples/c/encode/file/main.c;hb=HEAD . 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. _______________________________________________ flac-dev mailing list [email protected] http://lists.xiph.org/mailman/listinfo/flac-dev
