Is it possible to convert OGG to WAV in BMX?

BlitzMax Forums/BlitzMax Programming/Is it possible to convert OGG to WAV in BMX?

anawiki(Posted 2006) [#1]
Hi
Is it possible to convert ogg files to wav files in BMX? If I could do it on first launch of my game that would improve loading times so much :)


Perturbatio(Posted 2006) [#2]
um... why would you want to?


anawiki(Posted 2006) [#3]
because loading time for my game on my old laptop (800 MHz, >300MB ram, WinMe) takes >30s and if I can load WAV instead of OGG I believe loading times will be shorter.


taxlerendiosk(Posted 2006) [#4]
Yeah, it's possible. If you look in BRL.OggLoader, this:
		Local ogg:Byte Ptr=Decode_Ogg(stream,readfunc,seekfunc,closefunc,tellfunc,samples,channels,freq)

...seems to be where you get a pointer to a chunk of raw sample data, which (with the appropriate header, of course) could be saved straight to a .WAV file instead of the audio system.