This sketch demonstrates how to use the
Controller object. The class used here is an
AudioOutput but you can also
isMuted returns true or false depending on the current mute state.
do exactly what they claim to. However, it is possible that your object will not have a mute control, in which case
isMuted will always return false and
unmute will do nothing. If
muting is available you will notice that muting the output doesn't change the waveform being drawn. The reason for
this is that the
DataLine carrying the audio to the system is what is being muted and *not* the
output's signal generation (see the example Polyphonic >> soundNoSound for more about that).
Hold down the mouse button to mute the output and release the mouse button to unmute it.
Built with Processing