Is it possible to convert OGG to WAV in BMX?
BlitzMax Forums/BlitzMax Programming/Is it possible to convert OGG to WAV in BMX?
| ||
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 :) |
| ||
um... why would you want to? |
| ||
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. |
| ||
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. |