| Modifier and Type | Field and Description |
|---|---|
| protected static final int | |
| private boolean | manuallyOpened
if this mixer had been opened manually with open() If it was, then it won't be closed automatically, only when close() is called manually. |
| private final Mixer. | mixerInfo
Info object describing this mixer. |
| protected static final int | |
| protected Line. | sourceLineInfo
source lines provided by this mixer |
| private final Vector | sourceLines
Source lines (ports) currently open. |
| private boolean | started
if any line of this mixer is started |
| protected Line. | targetLineInfo
target lines provided by this mixer |
| private final Vector | targetLines
Target lines currently open. |
| protected static final int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv final synchronized void | |
| public final synchronized void | close()
Implements abstract com. Implements javax. Close all lines and then close this mixer. |
| public abstract Line | getLine(Line.
Redeclares javax. Obtains a line that is available for use and that matches the description
in the specified |
| pack-priv final Line. | getLineInfo(Line.
Returns the first complete Line.Info object it finds that matches the one specified, or null if no matching Line.Info object is found. |
| public abstract int | getMaxLines(Line.
Redeclares javax. Obtains the approximate maximum number of lines of the requested type that can be open simultaneously on the mixer. |
| public final Mixer. | getMixerInfo()
Implements javax. Obtains information about this mixer, including the product's name, version, vendor, etc. |
| public final Line. | getSourceLineInfo()
Implements javax. Obtains information about the set of source lines supported by this mixer. |
| public final Line. | getSourceLineInfo(Line.
Implements javax. Obtains information about source lines of a particular type supported by the mixer. |
| public final Line[] | getSourceLines()
Implements javax. Obtains the set of all source lines currently open to this mixer. |
| public final Line. | getTargetLineInfo()
Implements javax. Obtains information about the set of target lines supported by this mixer. |
| public final Line. | getTargetLineInfo(Line.
Implements javax. Obtains information about target lines of a particular type supported by the mixer. |
| public final Line[] | getTargetLines()
Implements javax. Obtains the set of all target lines currently open from this mixer. |
| protected abstract void | |
| protected abstract void | |
| protected abstract void | |
| protected abstract void | |
| public final boolean | isLineSupported(Line.
Implements javax. Indicates whether the mixer supports a line (or lines) that match the
specified |
| pack-priv final boolean | |
| public final boolean | isSynchronizationSupported(Line[] lines, boolean maintainSync)
Implements javax. Default implementation always returns false. |
| pack-priv final boolean | |
| public final synchronized void | open()
Implements abstract com. Implements javax. This implementation tries to open the mixer with its current format and buffer size settings. |
| pack-priv final synchronized void | open(boolean manual)
This implementation tries to open the mixer with its current format and buffer size settings. |
| pack-priv final synchronized void | |
| pack-priv final synchronized void | |
| pack-priv final synchronized void | |
| public final void | synchronize(Line[] lines, boolean maintainSync)
Implements javax. Default implementation always throws an exception. |
| public final void | unsynchronize(Line[] lines)
Implements javax. Default implementation always throws an exception. |
| ALAW | back to summary |
|---|---|
| protected static final int ALAW | |
| manuallyOpened | back to summary |
|---|---|
| private boolean manuallyOpened if this mixer had been opened manually with open() If it was, then it won't be closed automatically, only when close() is called manually. | |
| mixerInfo | back to summary |
|---|---|
| private final Mixer. Info object describing this mixer. | |
| PCM | back to summary |
|---|---|
| protected static final int PCM | |
| sourceLineInfo | back to summary |
|---|---|
| protected Line. source lines provided by this mixer | |
| sourceLines | back to summary |
|---|---|
| private final Vector<Line> sourceLines Source lines (ports) currently open. | |
| started | back to summary |
|---|---|
| private boolean started if any line of this mixer is started | |
| targetLineInfo | back to summary |
|---|---|
| protected Line. target lines provided by this mixer | |
| targetLines | back to summary |
|---|---|
| private final Vector<Line> targetLines Target lines currently open. | |
| ULAW | back to summary |
|---|---|
| protected static final int ULAW | |
| AbstractMixer | back to summary |
|---|---|
| protected AbstractMixer(Mixer. Constructs a new AbstractMixer. | |
| close | back to summary |
|---|---|
| pack-priv final synchronized void close(Line line) Removes this line from the list of open source lines and open target lines, if it exists in either. If the list is now empty, closes the mixer. | |
| close | back to summary |
|---|---|
| public final synchronized void close() Implements abstract com. Implements javax. Close all lines and then close this mixer.
| |
| getLine | back to summary |
|---|---|
| public abstract Line getLine(Line. Redeclares 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 |
|---|---|
| pack-priv final Line. Returns the first complete Line.Info object it finds that matches the one specified, or null if no matching Line.Info object is found. | |
| getMaxLines | back to summary |
|---|---|
| public abstract int getMaxLines(Line. Redeclares 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 final Mixer. Implements javax. Doc from javax. Obtains information about this mixer, including the product's name, version, vendor, etc.
| |
| getSourceLineInfo | back to summary |
|---|---|
| public final 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 final 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 final Line[] getSourceLines() Implements javax. Doc from javax. Obtains the set of all source lines currently open to this mixer.
| |
| getTargetLineInfo | back to summary |
|---|---|
| public final 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 final 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 final Line[] getTargetLines() Implements javax. Doc from javax. Obtains the set of all target lines currently open from this mixer.
| |
| implClose | back to summary |
|---|---|
| protected abstract void implClose() | |
| implOpen | back to summary |
|---|---|
| protected abstract void implOpen() throws LineUnavailableException | |
| implStart | back to summary |
|---|---|
| protected abstract void implStart() | |
| implStop | back to summary |
|---|---|
| protected abstract void implStop() | |
| isLineSupported | back to summary |
|---|---|
| public final boolean isLineSupported(Line. Implements javax. Doc from javax. Indicates whether the mixer supports a line (or lines) that match the
specified
| |
| isSourceLine | back to summary |
|---|---|
| pack-priv final boolean isSourceLine(Line. Determines whether this is a source line for this mixer. Right now this just checks whether it's supported, but should check whether it actually belongs to this mixer.... | |
| isSynchronizationSupported | back to summary |
|---|---|
| public final boolean isSynchronizationSupported(Line[] lines, boolean maintainSync) Implements javax. Default implementation always returns false.
| |
| isTargetLine | back to summary |
|---|---|
| pack-priv final boolean isTargetLine(Line. Determines whether this is a target line for this mixer. Right now this just checks whether it's supported, but should check whether it actually belongs to this mixer.... | |
| open | back to summary |
|---|---|
| public final synchronized void open() throws LineUnavailableException Implements abstract com. Implements javax. This implementation tries to open the mixer with its current format and buffer size settings.
| |
| open | back to summary |
|---|---|
| pack-priv final synchronized void open(boolean manual) throws LineUnavailableException This implementation tries to open the mixer with its current format and buffer size settings. | |
| open | back to summary |
|---|---|
| pack-priv final synchronized void open(Line line) throws LineUnavailableException The default implementation of this method just determines whether this line is a source or target line, calls open(no-arg) on the mixer, and adds the line to the appropriate vector. The mixer may be opened at a format different than the line's format if it is a DataLine. | |
| start | back to summary |
|---|---|
| pack-priv final synchronized void start(Line line) Starts the mixer. | |
| stop | back to summary |
|---|---|
| pack-priv final synchronized void stop(Line line) Stops the mixer if this was the last running line. | |
| synchronize | back to summary |
|---|---|
| public final void synchronize(Line[] lines, boolean maintainSync) Implements javax. Default implementation always throws an exception.
| |
| unsynchronize | back to summary |
|---|---|
| public final void unsynchronize(Line[] lines) Implements javax. Default implementation always throws an exception.
| |