JProgressbar too slow
I am trying to implement something similar to a VU meter.
I need to detect the input from a microphone and display the amplitude on a meter of some sort.
I tried using JProgressbar but it seems to be very slow at displaying.
It can't keep up with the updates.
Does anyone know of an alternative to a JProgressbar for displaying or anyway to speed up JProgressbar?
Thanks.
> I am trying to implement something similar to a VU
> meter.
>
> I need to detect the input from a microphone and
> display the amplitude on a meter of some sort.
> I tried using JProgressbar but it seems to be very
> slow at displaying.
Your eye will be too slow to see the changes in normal sound. Anything above about 25Hz will be lost!
Possibley what you need to do is find the mean sample sound amplitude value over each (say) 0.1 second period and display it.