Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A good java audio library

 
Daniel Gen Li
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Joachim Rohde
Ranch Hand
Posts: 433
Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apparently the new beta version of LWJGL has support for FMOD. I'm going to look into that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic