Forums Register Login

A good java audio library

+Pie Number of slices to send: Send
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).

Is there a third alternative for game sounds?
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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?
+Pie Number of slices to send: Send
 

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.
+Pie Number of slices to send: Send
Apparently the new beta version of LWJGL has support for FMOD. I'm going to look into that.
Alas, poor Yorick, he knew this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 3227 times.
Similar Threads
Audio Drivers
OpenGL and Java
audio resources for Applet, alternatives to Jar?
JOGL 1 vs JOGL 2.0?
Minecraft: example of what can be accomplished in java game
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 03:26:23.