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
.
Returns:
the maximum number of matching lines supported, or
AudioSystem.NOT_SPECIFIED
Parameters:
-
info - a
Line.Info
that describes the line for which
the number of supported instances is queried