| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Object | |
| private final float | |
| private AudioFormat | |
| pack-priv boolean | |
| pack-priv static final Mixer. | |
| pack-priv static final String | |
| pack-priv static final String | |
| pack-priv static final String | |
| pack-priv static final String | |
| private final boolean | |
| private final long | |
| private final List | |
| private SoftMixingMainMixer | |
| private boolean | |
| private SoftAudioPusher | |
| private AudioInputStream | |
| private SourceDataLine | |
| private final Line. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addLineListener(LineListener listener)
Implements javax. Adds a listener to this line. |
| public void | close()
Implements javax. Closes the line, indicating that any system resources in use by the line can be released. |
| public Control | getControl(Control.
Implements javax. Obtains a control of the specified type, if there is any. |
| pack-priv float | |
| public Control[] | getControls()
Implements javax. Obtains the set of controls associated with this line. |
| public AudioFormat | |
| public long | |
| public Line | getLine(Line.
Implements javax. Obtains a line that is available for use and that matches the description
in the specified |
| public Line. | getLineInfo()
Implements javax. Obtains the |
| pack-priv SoftMixingMainMixer | |
| public int | getMaxLines(Line.
Implements javax. Obtains the approximate maximum number of lines of the requested type that can be open simultaneously on the mixer. |
| public Mixer. | getMixerInfo()
Implements javax. Obtains information about this mixer, including the product's name, version, vendor, etc. |
| public Line. | getSourceLineInfo()
Implements javax. Obtains information about the set of source lines supported by this mixer. |
| public Line. | getSourceLineInfo(Line.
Implements javax. Obtains information about source lines of a particular type supported by the mixer. |
| public Line[] | getSourceLines()
Implements javax. Obtains the set of all source lines currently open to this mixer. |
| public Line. | getTargetLineInfo()
Implements javax. Obtains information about the set of target lines supported by this mixer. |
| public Line. | getTargetLineInfo(Line.
Implements javax. Obtains information about target lines of a particular type supported by the mixer. |
| public Line[] | getTargetLines()
Implements javax. Obtains the set of all target lines currently open from this mixer. |
| public boolean | isControlSupported(Control.
Implements javax. Indicates whether the line supports a control of the specified type. |
| public boolean | isLineSupported(Line.
Implements javax. Indicates whether the mixer supports a line (or lines) that match the
specified |
| public boolean | isOpen()
Implements javax. Indicates whether the line is open, meaning that it has reserved system resources and is operational, although it might not currently be playing or capturing sound. |
| public boolean | isSynchronizationSupported(Line[] lines, boolean maintainSync)
Implements javax. Reports whether this mixer supports synchronization of the specified set of lines. |
| public void | open()
Implements javax. Opens the line, indicating that it should acquire any required system resources and become operational. |
| public void | |
| public AudioInputStream | |
| public void | removeLineListener(LineListener listener)
Implements javax. Removes the specified listener from this line's list of listeners. |
| private void | |
| public void | synchronize(Line[] lines, boolean maintainSync)
Implements javax. Synchronizes two or more lines. |
| public void | unsynchronize(Line[] lines)
Implements javax. Releases synchronization for the specified lines. |
| control_mutex | back to summary |
|---|---|
| pack-priv final Object control_mutex | |
| controlrate | back to summary |
|---|---|
| private final float controlrate | |
| format | back to summary |
|---|---|
| private AudioFormat format | |
| implicitOpen | back to summary |
|---|---|
| pack-priv boolean implicitOpen | |
| info | back to summary |
|---|---|
| pack-priv static final Mixer. | |
| INFO_DESCRIPTION | back to summary |
|---|---|
| pack-priv static final String INFO_DESCRIPTION | |
| INFO_NAME | back to summary |
|---|---|
| pack-priv static final String INFO_NAME | |
| INFO_VENDOR | back to summary |
|---|---|
| pack-priv static final String INFO_VENDOR | |
| INFO_VERSION | back to summary |
|---|---|
| pack-priv static final String INFO_VERSION | |
| jitter_correction | back to summary |
|---|---|
| private final boolean jitter_correction | |
| latency | back to summary |
|---|---|
| private final long latency | |
| listeners | back to summary |
|---|---|
| private final List<LineListener> listeners | |
| mainmixer | back to summary |
|---|---|
| private SoftMixingMainMixer mainmixer | |
| open | back to summary |
|---|---|
| private boolean open | |
| pusher | back to summary |
|---|---|
| private SoftAudioPusher pusher | |
| pusher_stream | back to summary |
|---|---|
| private AudioInputStream pusher_stream | |
| sourceDataLine | back to summary |
|---|---|
| private SourceDataLine sourceDataLine | |
| sourceLineInfo | back to summary |
|---|---|
| private final Line. | |
| SoftMixingMixer | back to summary |
|---|---|
| public SoftMixingMixer() | |
| addLineListener | back to summary |
|---|---|
| public void addLineListener(LineListener listener) Implements javax. Doc from javax. Adds a listener to this line. Whenever the line's status changes, the
listener's
| |
| close | back to summary |
|---|---|
| public void close() Implements javax. Doc from javax. Closes the line, indicating that any system resources in use by the line
can be released. If this operation succeeds, the line is marked closed
and a
| |
| getControl | back to summary |
|---|---|
| public Control getControl(Control. Implements javax. Doc from javax. Obtains a control of the specified type, if there is any. Some controls may only be available when the line is open.
| |
| getControlRate | back to summary |
|---|---|
| pack-priv float getControlRate() | |
| getControls | back to summary |
|---|---|
| public Control[] getControls() Implements javax. Doc from javax. Obtains the set of controls associated with this line. Some controls may only be available when the line is open. If there are no controls, this method returns an array of length 0.
| |
| getFormat | back to summary |
|---|---|
| public AudioFormat getFormat() | |
| getLatency | back to summary |
|---|---|
| public long getLatency() | |
| getLine | back to summary |
|---|---|
| public Line getLine(Line. Implements javax. Doc from javax. Obtains a line that is available for use and that matches the description
in the specified
If a
| |
| getLineInfo | back to summary |
|---|---|
| public Line. Implements javax. Doc from javax. Obtains the
| |
| getMainMixer | back to summary |
|---|---|
| pack-priv SoftMixingMainMixer getMainMixer() | |
| getMaxLines | back to summary |
|---|---|
| public int getMaxLines(Line. Implements javax. Doc from javax. Obtains the approximate maximum number of lines of the requested type that can be open simultaneously on the mixer. Certain types of mixers do not have a hard bound and may allow opening more lines. Since certain lines are a shared resource, a mixer may not be able to open the maximum number of lines if another process has opened lines of this mixer.
The requested type is any line that matches the description in the
provided
| |
| getMixerInfo | back to summary |
|---|---|
| public Mixer. Implements javax. Doc from javax. Obtains information about this mixer, including the product's name, version, vendor, etc.
| |
| getSourceLineInfo | back to summary |
|---|---|
| public Line. Implements javax. Doc from javax. Obtains information about the set of source lines supported by this mixer. Some source lines may only be available when this mixer is open.
| |
| getSourceLineInfo | back to summary |
|---|---|
| public Line. Implements javax. Doc from javax. Obtains information about source lines of a particular type supported by the mixer. Some source lines may only be available when this mixer is open.
| |
| getSourceLines | back to summary |
|---|---|
| public Line[] getSourceLines() Implements javax. Doc from javax. Obtains the set of all source lines currently open to this mixer.
| |
| getTargetLineInfo | back to summary |
|---|---|
| public Line. Implements javax. Doc from javax. Obtains information about the set of target lines supported by this mixer. Some target lines may only be available when this mixer is open.
| |
| getTargetLineInfo | back to summary |
|---|---|
| public Line. Implements javax. Doc from javax. Obtains information about target lines of a particular type supported by the mixer. Some target lines may only be available when this mixer is open.
| |
| getTargetLines | back to summary |
|---|---|
| public Line[] getTargetLines() Implements javax. Doc from javax. Obtains the set of all target lines currently open from this mixer.
| |
| isControlSupported | back to summary |
|---|---|
| public boolean isControlSupported(Control. Implements javax. Doc from javax. Indicates whether the line supports a control of the specified type. Some controls may only be available when the line is open.
| |
| isLineSupported | back to summary |
|---|---|
| public boolean isLineSupported(Line. Implements javax. Doc from javax. Indicates whether the mixer supports a line (or lines) that match the
specified
| |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Implements javax. Doc from javax. Indicates whether the line is open, meaning that it has reserved system resources and is operational, although it might not currently be playing or capturing sound.
| |
| isSynchronizationSupported | back to summary |
|---|---|
| public boolean isSynchronizationSupported(Line[] lines, boolean maintainSync) Implements javax. Doc from javax. Reports whether this mixer supports synchronization of the specified set of lines.
| |
| open | back to summary |
|---|---|
| public void open() throws LineUnavailableException Implements javax. Doc from javax. Opens the line, indicating that it should acquire any required system
resources and become operational. If this operation succeeds, the line is
marked as open, and an
Note that some lines, once closed, cannot be reopened. Attempts to reopen
such a line will always result in an
Some types of lines have configurable properties that may affect resource
allocation. For example, a
This method takes no arguments, and opens the line with the current
settings. For
For
| |
| open | back to summary |
|---|---|
| public void open(SourceDataLine line) throws LineUnavailableException | |
| openStream | back to summary |
|---|---|
| public AudioInputStream openStream(AudioFormat targetFormat) throws LineUnavailableException | |
| removeLineListener | back to summary |
|---|---|
| public void removeLineListener(LineListener listener) Implements javax. Doc from javax. Removes the specified listener from this line's list of listeners.
| |
| sendEvent | back to summary |
|---|---|
| private void sendEvent(LineEvent event) | |
| synchronize | back to summary |
|---|---|
| public void synchronize(Line[] lines, boolean maintainSync) Implements javax. Doc from javax. Synchronizes two or more lines. Any subsequent command that starts or stops audio playback or capture for one of these lines will exert the same effect on the other lines in the group, so that they start or stop playing or capturing data simultaneously.
| |
| unsynchronize | back to summary |
|---|---|
| public void unsynchronize(Line[] lines) Implements javax. Doc from javax. Releases synchronization for the specified lines. The array must be
identical to one for which synchronization has already been established;
otherwise an exception may be thrown. However,
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Info | back to summary |
|---|---|
| pack-priv Info() | |