[Vorbis-dev] libao - libsndfile plugin

Ralph Giles giles at xiph.org
Sat Apr 22 16:51:01 PDT 2006


On Sun, Apr 23, 2006 at 12:23:18AM +0200, Antoine Mathys wrote:

> I have written a libsndfile (http://www.mega-nerd.com/libsndfile/) file 
> output plugin for libao.

Cool! Does this give us AIFF support too?

> 1a. Keeping the AU/WAV/RAW plugins and adding libsndfile output as a new 
> possibility, along potential other library-based output plugins (the 
> current state of things).

I prefer this.

> 1c. Making it a compile time choice. By default, use the library if 
> available, the built-in plugins otherwise.

Followed by this. libao should still work without dependencies, but 
optionally replacing the implementation of the file output devices with
calls to libsndfile would be ok. (are there actual problems with the 
current file device implementations?)

> In any of these cases some changes could be useful, like
> 2a. (In case 1a) Passing the filename to the file output plugin so that 
> it can guess the format by looking at the extension. Having to type 
> "ogg123 -d sndfile -f x.wav -o format:wav" is ridiculous.

I think it makes more sense to do this in ogg123 than in libao. That is, 
just patch it to automagically set the format option from the extension 
if (a) the libsndfile device is being used and (b) the user hasn't set
it explicitly.

IMO,
 -r


More information about the Vorbis-dev mailing list