On Jan 21 14:48:35, ulr...@chirlu.de wrote: > Jan Stary <h...@stare.cz>: > > > If libvorbis is installed, and the vorbis functionality > > is present in the installed libsndfile, which one will > > SoX us when built from source? > > It shouldn't use libsndfile unless -t sndfile is specified. > I didn't test this, though.
I did now (with 14.4.0 on an amd64 OpenBSD): If libsndfile with FLAC and Vorbis compiled in is found during ./configure, but FLAC and Vorbis is not (which is a typical situation, as libsndfile is searched for via pkg-config, and is found, unlike FLAC and Vorbis, which are not), then the build will pick up and link against the libsndfile, but the resulting SoX binary is not able to handle flac and ogg ("no handler"), eventhough the flac and ogg functionality is present, UNLESS told explicitly: $ sox /tmp/file.wav /tmp/file.flac sox FAIL formats: no handler for file extension `flac' $ sox /tmp/file.wav -t sndfile /tmp/file.flac $ sox /tmp/file.wav /tmp/file.ogg sox FAIL formats: no handler for file extension `ogg' $ sox /tmp/file.wav -t sndfile /tmp/file.ogg Would it be possible to have SoX figure itself that the flac functionality is available (through libsndfile) and just use it, without having to specify it explicitly? If OTOH both flac and vorbis and flac- and vorbis-capable libsndfile are found during ./configure, it picks up and links against them (obviously), and when flac or ogg functionality is needed, sox just uses libvorbis or libflac directly, without going through libsndfile: $ sox /tmp/file.wav /tmp/file.flac $ sox /tmp/file.wav /tmp/file.ogg Jan ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d _______________________________________________ SoX-devel mailing list SoX-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-devel