Java: Processing audio in real time from speakers
问题 I'm working on a project that will change the brightness of keyboard lights with PWM signal, according to output sound levels. That trouble is, I need the output stream in real time. So far I used javax.sound.sampled package and I never succeeded grabbing the audio output. However, what have I done was to use targetDataLine and sourceDataLine, which don't look like the way to go, I'm still trying though. What I need is an audio stream provider, which my java app can "hear" and process it. So