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

2005-10-03 Thread Mario Lang
carmen [EMAIL PROTECTED] writes: 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? Sorry, but this

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

2005-10-03 Thread Frank Neumann
Hi list, On Sun, 2 Oct 2005 19:55:17 +0200 Frank Barknecht [EMAIL PROTECTED] wrote: [..] Additionally, libsndfile support wouldnt be that bad either, so, I am wondering, is there a reliable way to detect a audio streams file format just given some bits of the header? The file command

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

2005-10-03 Thread Erik de Castro Lopo
Mario Lang wrote: Hi. My little time-compressing audio player yatm currently supports 3 different audio formats, ogg and speex via the xiph libraries, and mpeg via libmad. I currently just blindly try to launch the decoder for either ogg, speex or mp3 in series. SO if the first fails, I

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

2005-10-03 Thread Erik de Castro Lopo
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

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

2005-10-03 Thread Mario Lang
Erik de Castro Lopo [EMAIL PROTECTED] writes: So that I could set the appropriate decoder algorithm based on that analysis? Or is there actually a library one step higher level than libsndfile which does generic audioformat to PCM? Isn't that what libsndfile does? Yes :-) BTW, the

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

2005-10-03 Thread Erik de Castro Lopo
Mario Lang wrote: Erik de Castro Lopo [EMAIL PROTECTED] writes: BTW, the latest release of libsndfile supports FLAC via the same API as all the other formats. GREAT!!! I was s waiting for this! So now I'll be able to read flac files in SuperCollider. Now, if libsndfile only would

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

2005-10-02 Thread Mario Lang
Hi. My little time-compressing audio player yatm currently supports 3 different audio formats, ogg and speex via the xiph libraries, and mpeg via libmad. I currently just blindly try to launch the decoder for either ogg, speex or mp3 in series. SO if the first fails, I try the second, and so on.

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

2005-10-02 Thread carmen
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? although in the major web browsers a .gif saved with

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

2005-10-02 Thread Frank Barknecht
Hallo, Mario Lang hat gesagt: // Mario Lang wrote: My little time-compressing audio player yatm currently supports 3 different audio formats, ogg and speex via the xiph libraries, and mpeg via libmad. I currently just blindly try to launch the decoder for either ogg, speex or mp3 in series.

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

2005-10-02 Thread Tom Szilagyi
On Sun, Oct 02, 2005 at 02:01:50PM +0200, Mario Lang wrote: Hi. My little time-compressing audio player yatm currently supports 3 different audio formats, ogg and speex via the xiph libraries, and mpeg via libmad. I currently just blindly try to launch the decoder for either ogg, speex or