Here's an alpha version of the component.
Note that it really deserves the name "alpha version" !
The component for MacOSX only right now (it uses Mach-O). It should be easy to compile a Carbon, MacOS 9 compatible version but I haven't had time to check it out.
The importer and decoder should decode successfully standard FLAC stream, ie 16 bits 44100 Hz and a reasonable blocksize. It has not been tested with any other sample size or rate, nor with variable blocksize streams.
There is currently a bug with the metadata, some names (with spaces in them ?) are appended with random characters. I haven't had time to fix this for the alpha.
Even though my test files decode without problems, there are still known (and certainly unknown too) possiblities where it will fail to decode the file, which might crash or freeze QuickTime Player. Use it at your own risks.
Because of all this do not use it for important data. There is no way it could modify the original files since it opens them in read-only mode, but there might be errors in the resulting files when you save or export the movie in QuickTime, so keep the originals anyway.
Progressive importing support is on the way (in fact it works but it is still slow and very heavy on the CPU, I'll have to optimize it), but I have disabled it in the alpha. You'll have to wait for the entire file to load before playing it (currently about 3 seconds for a 20MB / 2:30 file).
There is no encoder yet.
As for iTunes support :
Right now it is not possible to drag and drop a flac file on the iTunes Window. Someone from Apple told me that this was not possible for third party codecs, except for "a few hard-coded exceptions". He told me to file a bug report concerning this. I'll ask the author of the Ogg Vorbis plugin about it, since the OggVorbis codec works in iTunes.
So to use FLAC files in iTunes, the best solution is currently to open them in QuickTime (Pro ?) Player and save them as a QuickTime movie (there is no reencoding, it is only a reference to the original FLAC file, like an alias, so it will be very small, some kB). This fixes the issue of the loading time too. There used to be an utility which did the same for Ogg files, as far as I remember, maybe it can do it for FLAC files too.
Note that to open a FLAC file in QuickTime you have to hold command-option when dropping the file on QuickTime Player.
I have not yet included the source code since part of it is still a bit of a mess and since I have not yet updated the copyright notices from the original OggVorbis Component files, so I'm not sure about license issues. I'll make it available as soon as I come back and clean it up, sorry for the inconvenience.
Thanks to Steve Nicolai from the QuickTime component project for his help and for making the source code of his component available, and to Kevin Calhoun from Apple on the quicktime-api dev list.
I'm leaving on vacation today and will be away from my computer and from internet until late August, so I won't be able to answer e-mail or to work on the project during this time. Expect an update in September... sorry for the delay.
Josh -> I will be glad to update to a new version of the library with Altivec support. I use a slightly modified version of the current API but this shouldn't be a problem.
QT FLAC Decoder (alpha version) :
http://damien.drix.free.fr/FLACDecoderAlpha.zipPlease don't give this link to everybody you know, this is a beta test and it IS potentialy buggy software. Anybody who installs it should come back here and check for updates until a stable version is released.
You can send mail to malgolad@free.fr for feedback, but anyway I won't be able to read your messages until I come back.
'til september,
Damien