I have been searching across the web for resources that could show me how to utilize the JProgressBar in this context. However, these resources do not specify how to get the duration of audio files. Is it even possible to do such a thing?
Asked
Active
Viewed 38 times
1 Answers
0
You didn't specify how exactly you are using the audio file, but you should be able to extract the duration of an audio file using AudioFileFormat:
https://docs.oracle.com/javase/7/docs/api/javax/sound/sampled/AudioFileFormat.html

Andreas Hartmann
- 1,825
- 4
- 23
- 36