[flac-dev] FLAC QUESTION

Erik de Castro Lopo mle+la at mega-nerd.com
Fri Apr 13 04:40:35 PDT 2012

Rafael Velasquez wrote:

> I'm using flac for an application.
> The fact is that i'm trying to encode a file that is not necessary a wav
> file.

Its still audio right? Or something audio like?

> So, at first, i would like to know if it's possible to encode a file
> different from the wav file with the flac encoder ?

FLAC is designed for audio. I would not encode images with it.

> When i put my data into : ok =
> FLAC__stream_encoder_process_interleaved(encoder, pcm, need);
> after some rounds in my boucl i get  :
> encoding: FAILED
> does it really mean ? and what are the reasons to be in this case ? )

Have you looked at the example code?

Another alternative would be to use libsndfile which offers the ability
to encode audio data as FLAC using a much simpler API.

Erik de Castro Lopo

More information about the flac-dev mailing list