Index: libecasound/plugins/audioio_sndfile.cpp =================================================================== RCS file: /home/cvspsrv/cvsroot/sound/ecasound/libecasound/plugins/audioio_sndfile.cpp,v retrieving revision 1.7 diff -u -r1.7 audioio_sndfile.cpp --- libecasound/plugins/audioio_sndfile.cpp 10 Dec 2003 00:13:09 -0000 1.7 +++ libecasound/plugins/audioio_sndfile.cpp 7 Oct 2004 14:50:27 -0000 @@ -145,6 +145,9 @@ int file_format = -1; string teksti = real_filename; + if (!opt_format_rep.empty()) { + teksti = opt_format_rep; + } kvu_to_lowercase(teksti); // FIXME: add support for more output types @@ -330,6 +333,10 @@ case 2: opt_filename_rep = value; break; + + case 3: + opt_format_rep = value; + break; } } @@ -341,6 +348,9 @@ case 2: return(opt_filename_rep); + + case 3: + return(opt_format_rep); } return(""); } Index: libecasound/plugins/audioio_sndfile.h =================================================================== RCS file: /home/cvspsrv/cvsroot/sound/ecasound/libecasound/plugins/audioio_sndfile.h,v retrieving revision 1.5 diff -u -r1.5 audioio_sndfile.h --- libecasound/plugins/audioio_sndfile.h 9 Jul 2004 13:58:50 -0000 1.5 +++ libecasound/plugins/audioio_sndfile.h 7 Oct 2004 14:50:27 -0000 @@ -74,7 +74,7 @@ /*@{*/ virtual int supported_io_modes(void) const { return(io_read | io_write | io_readwrite); } - virtual string parameter_names(void) const { return("filename,opt_filename"); } + virtual string parameter_names(void) const { return("filename,opt_filename,format"); } virtual bool locked_audio_format(void) const { return(true); } virtual void open(void) throw(AUDIO_IO::SETUP_ERROR&); @@ -87,6 +87,7 @@ private: std::string opt_filename_rep; + std::string opt_format_rep; SNDFILE* snd_repp; long samples_read; bool finished_rep;