PDA

View Full Version : Converter OGG to WAV



Yuriy O
09-22-2004, 11:38 AM
Hi,

I'm still looking for an OGG to WAV converter that I could use during an installation of the game to extract OGG into WAV. It could show a progress bar during unpack of do it silently with out even opening any windows at all.

I can't really find anything suitable. Does anyone know anything that could work this way for a fact? Or maybe there's some source code that I could integrate with Visual C++ and compile a converter that would work silently from a command line like I would run "converter.exe file.ogg file.wav"

Anyone has an idea? I wouldnt mind even buying it if the price is reasonable.

Thanks

Matthew
09-22-2004, 11:43 AM
This has an oggdec.exe you can use to decode Ogg files from the command line:

http://www.vorbis.com/files/1.0.1/windows/vorbis-tools-1.0.1-win32.zip

The source code is available as well:

http://www.vorbis.com/files/1.0.1/windows/vorbis-tools-1.0.1.zip

These downloads and other development files are available from:

http://www.vorbis.com/download_win_1.0.1.psp

Matthew
09-22-2004, 11:48 AM
It'll open a command prompt window, yeah. Your best option is probably to modify the source for it to suit your needs.

Yuriy O
09-22-2004, 12:04 PM
It'll open a command prompt window, yeah. Your best option is probably to modify the source for it to suit your needs.

Yes, It opens it even in quite mode.
Any idea of how could I easy get rid of it? I mean disable the md-dos windows opening in the source? Trying to figure out myself, before I have to give it to a programmer.

Thanks for links ,Matthew.

I would even pay if someone could modify it, so it opens up a progress bar window (in windows) while decoding the file(s). Also it does not seem to have an ability to put a file under a specific folder/name. That maybe possible to do with an installer though.

Nikster
09-22-2004, 12:42 PM
It will open a console window if it has been compiled as a console app, compile as a win32 app and change the main to winmain etc. adding a dialog and/or progress bar etc is just as easy.. asumming you know how to do all the windows mumbo jumbo..

James Gwertzman
09-22-2004, 06:31 PM
Going from OGG back to WAV seems like a waste - why aren't you just playing back directly from the OGG file? We use OGG's for all of our audio files and have been very impressed with the compression rates that can be achieved. Why waste the player's hard-drive space?

Peter Wayne
09-22-2004, 07:06 PM
Going from OGG back to WAV seems like a waste - why aren't you just playing back directly from the OGG file? We use OGG's for all of our audio files and have been very impressed with the compression rates that can be achieved. Why waste the player's hard-drive space?
I have to agree. I mean your WAV'S are going to sound EXACTLY the same as your orginal OGG files. Once you compress audio you cant get the sound quailty back.

I dont understand why you need to convert to wav. I thought that most game engines support OGG playback. If you want the high quailty of WAV files you can't compress them before going into your installer.

I dont understand why you are doing this. As James Gwertzman said by doing this you are wasting the player's hard-drive space. Without any benefit whatsoever.

Matthew
09-22-2004, 07:35 PM
I know many casual games create cached versions of .WAV files, especially for sound effects. For instance, PopCap does this (presumably to lighten the CPU load).

Yuriy O
09-23-2004, 04:20 AM
I know many casual games create cached versions of .WAV files, especially for sound effects. For instance, PopCap does this (presumably to lighten the CPU load).

Yes, playing XM and also OGG as I was told load the CPU. I'm not sure for certain about OGG, because we never got a chance to try it. Did not really find a code that would enable us to play it easy. XM does load, especially on win 98, we start losing frames in our shooter...

Yuriy O
09-23-2004, 11:48 AM
It will open a console window if it has been compiled as a console app, compile as a win32 app and change the main to winmain etc. adding a dialog and/or progress bar etc is just as easy.. asumming you know how to do all the windows mumbo jumbo..


We tired to compile source for the converter, but it gives us multiple errors and missing some libs. It's always a mess to try to compile some GPL stuff on Visual C++. If somone already has an OGG to WAV convertor with a windows progress bar, I would be willing to buy it or pay someone who could adjust GPL to Visual C++ quick.

Let me know. Thanks

oNyx
09-23-2004, 03:06 PM
In case you missed it... you also need the SDK for compiling it (or anything else).

http://www.vorbis.com/download_win_1.0.1.psp

Yuriy O
09-23-2004, 05:15 PM
In case you missed it... you also need the SDK for compiling it (or anything else).

http://www.vorbis.com/download_win_1.0.1.psp

I think we got it to compile, I dont think we used SDK.

Thanks!


Yes, all done. Thanks guys.