javax.sound.sampled
abstract public class: Control [javadoc |
source]
java.lang.Object
javax.sound.sampled.Control
Direct Known Subclasses:
BooleanControl, EnumControl, FloatControl, CompoundControl
Lines 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 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.
Also see:
- Line#getControls
- Line#isControlSupported
- author:
Kara
- Kytle
- since:
1.3
-
Nested Class Summary: |
---|
public static class | Control.Type | An instance of the Type class represents the type of
the control. Static instances are provided for the
common types. |
Constructor: |
protected Control(Type type) {
this.type = type;
}
Constructs a Control with the specified type. Parameters:
type - the kind of control desired
|
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from javax.sound.sampled.Control Detail: |
public Type getType() {
return type;
}
Obtains the control's type. |
public String toString() {
return new String(getType() + " Control");
}
Obtains a String describing the control type and its current state. |