Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Progress bar possible with streaming audio?

Status
Not open for further replies.

rwitmer

Programmer
Feb 21, 2005
1
US
I have already created an application that will play a long audio file using SourceDataLine. I am looking for a way to do three things:

1) Display seconds elapsed on a progress bar or something similar
2) Display total seconds of audio available in the file (not just how many seconds it has available in the current buffer)
3) Start play from some point not at the beginning of the file, like from second 10 of the file.

getMicrosecondPosition() from DataLine looks useful on the first one, but I don't know about the other two. Can anyone point me to an example, tutorial or resource that deals with those questions? Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top