Jul
28
2009
Ogg Music Support
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

![[loading...]](http://www.projectmoldering.com/images/indicator.gif)