Question

I'd like to check my systemmixers for volume in Java.

So I loop through all mixers and create a line. Is there a possibility to get an integer of the volume currently active on that line? I only seem to find adjustments to the systemvolume or linevolume but not the current actual volume.

Or should I try to record a little part of every mixer and check for volume?

Help is really bad appreciated.

Thanks!

Was it helpful?

Solution

You can get get a Mixer from the AudioSystem, then get a Line from the Mixer, then get a Control you need (I guess, FloatControl.Type.VOLUME). The Control has getValue() method.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top