[Flac-dev] Detecting FLAC file type

Shayne Wissler wissler at gmail.com
Tue Oct 6 13:11:44 PDT 2009

On Tue, Oct 6, 2009 at 1:57 PM, Martin Leese
<martin.leese at stanfordalumni.org> wrote:

> Perhaps I have misunderstood your problem,
> but is this not what magic numbers are for?

I know there is a "fLaC" at the beginning of the FLAC file, and I can
easily look for that, but my design sense was that it's better to have
the FLAC API vet the file type rather than having my code do it.

> For Ogg Vorbis and Ogg FLAC, see:
> http://wiki.xiph.org/index.php/MIMETypesCodecs#Codecs_Parameter

Isn't this meta information used in e.g. email and HTML? I don't think
it will help vet a standalone file. In any case, I already have a
solution with the OGG API's.


More information about the Flac-dev mailing list