Re: [linux-audio-dev] Sound file format detection?

From: Erik de Castro Lopo <mle+la@email-addr-hidden-nerd.com>
Date: Mon Oct 03 2005 - 16:19:10 EEST

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.
Received on Mon Oct 3 20:15:05 2005

This archive was generated by hypermail 2.1.8 : Mon Oct 03 2005 - 20:15:05 EEST