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.

_______________________________________________
flac-dev mailing list
[email protected]
http://lists.xiph.org/mailman/listinfo/flac-dev

Reply via email to