javax.sound.sampled
Class Control

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.sound.sampled.Control
Direct Known Subclasses:
BooleanControl sample code for javax.sound.sampled.BooleanControl definition code for javax.sound.sampled.BooleanControl , CompoundControl sample code for javax.sound.sampled.CompoundControl definition code for javax.sound.sampled.CompoundControl , EnumControl sample code for javax.sound.sampled.EnumControl definition code for javax.sound.sampled.EnumControl , FloatControl sample code for javax.sound.sampled.FloatControl definition code for javax.sound.sampled.FloatControl

public abstract class Control
extends Object sample code for java.lang.Object definition code for java.lang.Object

Lines sample code for javax.sound.sampled.Line definition code for javax.sound.sampled.Line often have a set of controls, such as gain and pan, that affect the audio signal passing through the line. Java Sound's Line objects let you obtain a particular control object by passing its class as the argument to a getControl sample code for javax.sound.sampled.Line.getControl(javax.sound.sampled.Control.Type) definition code for javax.sound.sampled.Line.getControl(javax.sound.sampled.Control.Type) method.

Because the various types of controls have different purposes and features, all of their functionality is accessed from the subclasses that define each kind of control.

Since:
1.3
See Also:
Line.getControls() sample code for javax.sound.sampled.Line.getControls() definition code for javax.sound.sampled.Line.getControls() , Line.isControlSupported(javax.sound.sampled.Control.Type) sample code for javax.sound.sampled.Line.isControlSupported(javax.sound.sampled.Control.Type) definition code for javax.sound.sampled.Line.isControlSupported(javax.sound.sampled.Control.Type)

Nested Class Summary
static class Control.Type sample code for javax.sound.sampled.Control.Type definition code for javax.sound.sampled.Control.Type
          An instance of the Type class represents the type of the control.
 
Constructor Summary
protected Control sample code for javax.sound.sampled.Control.Control(javax.sound.sampled.Control.Type) definition code for javax.sound.sampled.Control.Control(javax.sound.sampled.Control.Type) (Control.Type sample code for javax.sound.sampled.Control.Type definition code for javax.sound.sampled.Control.Type  type)
          Constructs a Control with the specified type.
 
Method Summary
 Control.Type sample code for javax.sound.sampled.Control.Type definition code for javax.sound.sampled.Control.Type getType sample code for javax.sound.sampled.Control.getType() definition code for javax.sound.sampled.Control.getType() ()
          Obtains the control's type.
 String sample code for java.lang.String definition code for java.lang.String toString sample code for javax.sound.sampled.Control.toString() definition code for javax.sound.sampled.Control.toString() ()
          Obtains a String describing the control type and its current state.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

Control sample code for javax.sound.sampled.Control(javax.sound.sampled.Control.Type) definition code for javax.sound.sampled.Control(javax.sound.sampled.Control.Type)

protected Control(Control.Type sample code for javax.sound.sampled.Control.Type definition code for javax.sound.sampled.Control.Type  type)
Constructs a Control with the specified type.

Parameters:
type - the kind of control desired
Method Detail

getType sample code for javax.sound.sampled.Control.getType() definition code for javax.sound.sampled.Control.getType()

public Control.Type sample code for javax.sound.sampled.Control.Type definition code for javax.sound.sampled.Control.Type  getType()
Obtains the control's type.

Returns:
the control's type.

toString sample code for javax.sound.sampled.Control.toString() definition code for javax.sound.sampled.Control.toString()

public String sample code for java.lang.String definition code for java.lang.String  toString()
Obtains a String describing the control type and its current state.

Overrides:
toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
a String representation of the Control.