Advertisement

How to optimize load time of an Ogg Vorbis file in directsound

Started by October 17, 2005 06:10 PM
0 comments, last by Andrew Russell 19 years, 1 month ago
I have Ogg Vorbis files playing great throught directsound, the only issue I have is that files seem to take a while to load into the game, is there any where to optimize this load time. Thanks
Because Ogg Vorbis is rather computationally expensive to decompress, it can cause large load times if you try to do it all at once. Also it will use up a lot of memory to store the decompressed waveform.

I recomend streaming it, preferably in a seperate thread. Unfortunatly I do not know how to achieve this in DirectSound. Here is a tutorial for Streaming Ogg Vorbis in OpenAL that may be at least half useful.

This topic is closed to new replies.

Advertisement