I'm pretty new to Java and GUI programming, so I have been looking at Swing for GUI programming and I have been looking at javazoom's projects for audio references. I'm currently working on creating a progress/seek bar in Swing however I'm not really sure what I should set the max value at for the slider, should it be in the AudioInputStream's available() method's byte number return when the stream is first returned (before anything is read) or should it be something else? Also how often should the slider update...ever time I read a new byte array into the dataLine/sourceLine from the input stream?
Frank0051 0 Light Poster
jwenting 1,905 duckman Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.