Methods Summary |
---|
public javax.sound.sampled.Line | getLine(javax.sound.sampled.Line$Info info)Obtains a line that is available for use and that matches the description
in the specified Line.Info object.
If a DataLine is requested, and info
is an instance of DataLine.Info specifying at
least one fully qualified audio format, the last one
will be used as the default format of the returned
DataLine .
|
public int | getMaxLines(javax.sound.sampled.Line$Info info)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 Line.Info object. For example, if the info
object represents a speaker
port, and the mixer supports exactly one speaker port, this method
should return 1. If the info object represents a source data line
and the mixer supports the use of 32 source data lines simultaneously,
the return value should be 32.
If there is no limit, this function returns AudioSystem.NOT_SPECIFIED .
|
public javax.sound.sampled.Mixer$Info | getMixerInfo()Obtains information about this mixer, including the product's name,
version, vendor, etc.
|
public javax.sound.sampled.Line$Info[] | getSourceLineInfo()Obtains information about the set of source lines supported
by this mixer.
Some source lines may only be available when this mixer is open.
|
public javax.sound.sampled.Line$Info[] | getSourceLineInfo(javax.sound.sampled.Line$Info info)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.
|
public javax.sound.sampled.Line[] | getSourceLines()Obtains the set of all source lines currently open to this mixer.
|
public javax.sound.sampled.Line$Info[] | getTargetLineInfo()Obtains information about the set of target lines supported
by this mixer.
Some target lines may only be available when this mixer is open.
|
public javax.sound.sampled.Line$Info[] | getTargetLineInfo(javax.sound.sampled.Line$Info info)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.
|
public javax.sound.sampled.Line[] | getTargetLines()Obtains the set of all target lines currently open from this mixer.
|
public boolean | isLineSupported(javax.sound.sampled.Line$Info info)Indicates whether the mixer supports a line (or lines) that match
the specified Line.Info object.
Some lines may only be supported when this mixer is open.
|
public boolean | isSynchronizationSupported(javax.sound.sampled.Line[] lines, boolean maintainSync)Reports whether this mixer supports synchronization of the specified set of lines.
|
public void | synchronize(javax.sound.sampled.Line[] lines, boolean maintainSync)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.
|
public void | unsynchronize(javax.sound.sampled.Line[] lines)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, null
may be specified, in which case all currently synchronized lines that belong
to this mixer are unsynchronized.
|