audio - Java Clip Not Rewinding Properly? -
i'm not sure if problem it's not rewinding properly. have sounds enumerator/class lets me load sound effects , play them @ will, , in game, initialize them , each time want play one, play in own thread doesn't freeze rest of game.
the problem first time hold down or click mouse shoot (and thus, play sound), plays sound, repeatedly, it's supposed to. after release mouse button , try again, sound no longer plays.
does know cause of be? here code snippets showing sounds class , piece of code playing sound.
sounds class: http://pastebin.com/hqt5dpq6 playing sound: http://pastebin.com/lex9zmzj
i appreciate help, dropped project couple of months ago because wasn't making progress due 1 stupid problem.
Comments
Post a Comment