Hello guys.
I’m making a sound engine for my game, and so far, it’s been pretty easy and straight forward. Everything is working pretty well.
I use and load WAV files into memory and dispose of them later for sound effects, and for music I stream in OGG files with the OggInputStream class I found on this very site. I also use jorbis for loading in the sound.
Now, everything works, but when I stream two OGG’s at the same time, the sound crackles really bad. After doing some research on the internet, I found that people who use OpenAL in Objective-C had the same problem, and apparently solved it by changing how the buffers allocate memory. Of course, I’m completely unsure if such a fix is possible in Java. Neither do I know anything about Objective-C. I’m also fairly new to OpenAL, so a lot of this is pretty Alien to me.
Does anyone know anything about this? If you need more elaboration, please do just ask.