Jump to content
  • Advertisement

Yar

Sign in to follow this  
  • entries
    208
  • comments
    383
  • views
    66064

Java Sound

Sign in to follow this  
H_o_p_s

95 views






After working and working at getting a better SoundManager class I finally made one that works with the JLayer library. It has some better functionality such as playing at a given spot within a song, changing volume, and even crossfade between two sound clips.

There is still a minor issue with buffering the files before playing. Currently you do a SoundManager.play("somemusic.ogg",0,null) to play some music, but it takes some time to load the file from disk.

The asnwer is to make a SoundCache object which would take input like SoundCache.load("SomeMusic.ogg"); and then SoundManager.play(SoundCache.load("SomeMusic"),0,null); All I have to do now is implement it :)
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!