Loading
Dev Blog: Project Moldering

Some quick Updates:

Here’s a quick preview of some new enemies I added to the Moldering world. I’ve used the stock graphics and drew some basic sprites just to get things up and running.

On other news I’ve had some success and some problems with Ogg. I’ve gotten tracks to successfully loop and stop when finished without crashing the system or looping the last second or so. However, there’s a small lag when the track is first loaded and when it starts over.

I wonder, does this have to do with Ogg streaming, is it OpenAL, or something entirely different?

Bookmark and Share

We’re using Ogg because it’s royalty free and provides fine compression. Using J-Ogg, I’ve managed to get streams to play, but I ran into a problem. The game hangs when the song is finished (either that or it continually loops the last buffer)… so I’ve got to do some debugging before I can move on.

Anyway, Ogg streaming is great. We can have a large library of music without worrying about running out of memory. As each song is played only a small amount of memory is read in at a time directly from the disk, rather than loading multiple 1-3mb songs into ram or on the heap. Now we can have that huge soundtrack we always dreamed of!

-James

Bookmark and Share