I'm sure many of us immediately think of "OpenAL" when I say a "good audio library", but that's the problem. OpenAL has a problem with some CREATIVE SOUNDBLASTER soundcards due to poorly written drivers, which cause the game to freeze when loading audio data. My new computer just happens to be a victim of CREATIVE's bad programmers.
Yes, I've tryed the Java Sound API, but compared to OpenAL, it relatively more complicated and a LOT slower (and honestly i still can't figure out how to seek back in a piece of streamed music without reloading the whole AudioInputStream).
If you have no problems using JNI have a look here where you can find wrappers for BASS and FMOD. (The link to the FMOD-wrapper seems to be broken at the moment but you can still find it in the google cache).
Can't say anything about the quality of the wrappers because I never used them. But I did use FMOD long time ago once and it's definitely worth a try.
Daniel Gen Li
Ranch Hand
Joined: Jan 02, 2010
Posts: 32
posted
0
With JNI, I'm automaticly assuming that it won't be cross-platform (please correct me if I'm wrong). I wanted my game to be cross-platform playable...
Also I don't really know much of JNI at all, can I still make my game cross-platform even if I use JNI?
Lester Burnham
Rancher
Joined: Oct 14, 2008
Posts: 1337
posted
0
Daniel Gen Li wrote:Also I don't really know much of JNI at all, can I still make my game cross-platform even if I use JNI?
Yes. Java WebStart (a.k.a JNLP) provides for deployment of cross-platform native code.
Daniel Gen Li
Ranch Hand
Joined: Jan 02, 2010
Posts: 32
posted
0
Apparently the new beta version of LWJGL has support for FMOD. I'm going to look into that.