aspose file tools*
The moose likes Game Development and the fly likes A good java audio library Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Game Development
Bookmark "A good java audio library" Watch "A good java audio library" New topic
Author

A good java audio library

Daniel Gen Li
Ranch Hand

Joined: Jan 02, 2010
Posts: 32
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?


Li
Joachim Rohde
Ranch Hand

Joined: Nov 27, 2006
Posts: 423

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
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
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
Apparently the new beta version of LWJGL has support for FMOD. I'm going to look into that.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: A good java audio library
 
Similar Threads
Audio Drivers
OpenGL and Java
JOGL 1 vs JOGL 2.0?
audio resources for Applet, alternatives to Jar?
Minecraft: example of what can be accomplished in java game