View Full Version : OGG-> WAV convertor from a command line
Yuriy
07-12-2004, 10:29 AM
Hi guys.
Does anyone know any free convertor that I can run from a command line to convert OGG into WAV format. Or maybe a source code that I could find to integrate with Visual C?
ps
I heard actually that you can play oggs under General public license. But I could never find any code that could be integrated with Visual C.
Thanks for advice.
disaffected
07-12-2004, 11:23 AM
give vorbis-tools a try
http://www.vorbis.com/download_win_1.0.1.psp
When you refer to "Visual C" are you looking for something that is specifically ANSI C instead of C++?
Whether you are playing back OGG or WAV format, if the file is of any length you will need the ability to use streaming buffers. In other words, you need to have code that locks a portion of the buffer so that you can fill it with new data even while the sound card is playing back the contents of the rest of the buffer. If you already have that code written, then dealing with the Ogg Vorbis library is a piece of cake. As I recall, I integrated it into my game in about two or three days, most of which was just reading the documentation and learning the names of the functions in the Vorbis library.
Regarding your original question - I have used DB Power Amp Music Converter to convert between OGG and MP3 formats. I don't recall if it will output WAV format as well or not, but it's probably worth looking into...
Good luck,
Yuriy
07-13-2004, 04:22 AM
I still can't find anything that would work from a command line.
Like "converter.exe 1.ogg 1.wav" so I can get wav on output... heh :confused:
patrox
07-13-2004, 05:14 AM
I still can't find anything that would work from a command line.
Like "converter.exe 1.ogg 1.wav" so I can get wav on output... heh :confused:
oggdec.exe in the vorbis tools.
http://gd.tuwien.ac.at/linuxcommand.org/man_pages/oggdec1.html for a little documentation
if you have a mouse you can also use this freeware:
http://members.home.nl/w.speek/oggifier.htm
I personnally use Awave from http://www.fmjsoft.com
pat.
Yuriy
07-13-2004, 06:31 AM
oggdec.exe in the vorbis tools.
http://gd.tuwien.ac.at/linuxcommand.org/man_pages/oggdec1.html for a little documentation
if you have a mouse you can also use this freeware:
http://members.home.nl/w.speek/oggifier.htm
I personnally use Awave from http://www.fmjsoft.com
pat.
Thank you, Patrox. I will look into this stuff asap!
Yuriy
07-15-2004, 07:34 AM
I looked at all the tools there and found one that converts. However I cant see it working with out opening an MS DOS window. Is it possible to by pass it or maybe there's another tool out there that I could use in conjunction with my inno setup installer?
My goal is to be able to unpack ogg to wav during the game installation.
Thanks