[linux-audio-dev] Sound file format detection?
Erik de Castro Lopo
mle+la at mega-nerd.com
Mon Oct 3 13:19:10 UTC 2005
carmen wrote:
> > I currently just blindly try to launch the decoder for either ogg, speex or
> > mp3 in series. I'd like to add flac...
>
> a simple way - how about assuming files are properly named, eg theres no files
> matching *.ogg which are actually .wav format?
No, but Ogg is a container format and may contain audio data encoded as
Vorbis, Speex or Flac.
> it would be great if there was truly one solution to this, on Mac you just
> use coreaudio API, on windows, you use ACM codec, but it seems each linux
> app has to independently support and depend on flac/ogg/speex/wav/etc libs,
> ad nauseum..
Yes, thats braindamaged. However, libsndfile now supports FLAC and work
on Ogg Vorbis and Ogg Speex is underway.
Erik
--
+-----------------------------------------------------------+
Erik de Castro Lopo
+-----------------------------------------------------------+
Linux, the UNIX defragmentation tool.
More information about the Linux-audio-dev
mailing list