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.
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.