[flac-dev] About Decode Streaming

Martijn van Beurden mvanb1 at gmail.com
Tue Jul 2 07:31:07 PDT 2013

On 02-07-13 16:13, Burak Orçun Özkablan wrote:
> Yes, I have tried plain wav data with file and stream functions of 
> decoder and encoder. They work succesfully.

Okay, so that's not the problem. Clear.

> You're right about FLAC can't find the first block in stream, because 
> I didn't add any metadata in stream. The documentation of FLAC says 
> that metadata callback function is optional for stream function of 
> decoder, so I didn't need adding metadata.

There is metadata, whether you add it or not. I'm not talking about data 
you might add, like a title, tracknumber or trackname, but data that is 
in the STREAMINFO block. That is mandatory and added by the FLAC 
encoder, even if you don't specify any callbacks.

> Actually, I am sure about network data transferring is good, there is 
> no problem, i have tested so much and observed all data has 
> transmitted at every time. I suspend that sync problem occurs from 
> network latency. Do you have any idea about this? If read callback may 
> sleep or process more than excepted time, does sync lost?

Maybe, can't tell. I'm not really a programmer, I just know a little 
about the FLAC format, so at this point I can't help you anymore. Maybe 
someone else on this list.

More information about the flac-dev mailing list