views:

85

answers:

1

I created an audio Player using java applet but i'm stuck at trying to create a progress bar, no need for seek or anything fancy, just a progress bar displaying the progress of the audio file being played.

I don't know how to get the current progress off the AudioClip, that's my main problem among other small things. any hints would be appreciated. thanks

+2  A: 

You can't use AudioClip for that; you'll have to use the javax.sound API. The great Example Depot has good sample code to get you started.

Here's how to load and playback an audio file.

Here's how to query the clip for its current position.

Jonathan Feinberg