This sketch demonstrates how to use the mute, unmute, and isMuted methods
of a Controller object. The class used here is an AudioOutput but you can also
mute/unmute AudioSample, AudioSnippet, AudioInput, and AudioPlayer objects.
isMuted returns true or false depending on the current mute state. mute and unmute
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 mute 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