To view this content, you need to install Java from java.com

This sketch demonstrates how to use the hasControl method of a Controller object. The class used here is an AudioOutput but you can also use test for controls of AudioSample, AudioSnippet, AudioInput, and AudioPlayer objects. hasControl takes one of the static control types of Controller as the argument. These are Controller.BALANCE, Controller.GAIN, Controller.MUTE, Controller.PAN, Controller.SAMPLE_RATE, and Controller.VOLUME. You should always check if a control is available before you attempt to use it.

Source code: hasControl

Built with Processing