Java Sound

posted in Yar
Published April 17, 2005
Advertisement
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 answer 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 [smile]
Previous Entry Java Sound
Next Entry Yar!
0 likes 1 comments

Comments

Gaheris
And maybe implement some sort of max. number of cached sounds manager which frees the less used sounds. By the way, my (very small and basic) game console framework is done. Too bad you ain't using Java 5. :D
April 18, 2005 08:19 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement

Latest Entries

!!!!!!!

671 views

MIDI Keyboard v1.7

1527 views

Yar.

1196 views

Orchestra Recording

1312 views

MIDI Keyboard v1.5

1444 views

Registration

1311 views

Ahhh!!!

1077 views

Um... yeah...

1064 views
Advertisement