Menu

#138 Read block by block decoding FLAC format ?

open
nobody
None
5
2012-12-12
2011-05-24
bruno
No

Hi everyone,

I was wondering if there's a way to decode a FLAC file to PCM linear block by block (kinda like the way we do in the encoder example : loop until the end of the file) instead of calling the procedure FLAC__stream_decoder_process_until_end_of_stream ?
My problem is that the FLAC__stream_decoder_process_until_end_of_stream method takes a lot of time to decode a FLAC file on my machine so I was wondering if a could just write the begging of the PCM file then launch the audio player to began buffering and reading the PCM and then continue to decode FLAC ?
By the way, I'm coding on MAC OS X.
Thanks a lot for your help.

Discussion


Log in to post a comment.