|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.sound.sampled.Line.Info
javax.sound.sampled.DataLine.Info
public static class DataLine.Info
This class extends Line.Info with information specific to DataLine. In particular it adds information about buffer sizes, and about supported audio formats.
Constructor Summary | |
---|---|
DataLine.Info(Class<?> klass,
AudioFormat fmt)
Create a new Info given the line's class and a supported audio format. |
|
DataLine.Info(Class<?> klass,
AudioFormat[] fmts,
int minSize,
int maxSize)
Create a new Info given the line's class, the supported audio formats, the minimum buffer size, and the maximum buffer size. |
|
DataLine.Info(Class<?> klass,
AudioFormat fmt,
int size)
Create a new Info given the line's class, a supported audio format, and a buffer size. |
Method Summary | |
---|---|
AudioFormat[] |
getFormats()
Return the supported audio formats. |
int |
getMaxBufferSize()
Return the maximum buffer size. |
int |
getMinBufferSize()
Return the minimum buffer size. |
boolean |
isFormatSupported(AudioFormat fmt)
Return true if the indicated audio format is supported by this Info, false otherwise. |
boolean |
matches(Line.Info o)
Return true if this Info matches another Info object. |
String |
toString()
Return a description of this Info object. |
Methods inherited from class javax.sound.sampled.Line.Info |
---|
getLineClass |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DataLine.Info(Class<?> klass, AudioFormat fmt)
klass
- the class of the linefmt
- the supported formatpublic DataLine.Info(Class<?> klass, AudioFormat[] fmts, int minSize, int maxSize)
klass
- the class of the lineefmts
- the supported audio formatsminSize
- the minimum buffer sizemaxSize
- the maximum buffer sizepublic DataLine.Info(Class<?> klass, AudioFormat fmt, int size)
klass
- the class of the linefmt
- the supported formatsize
- the buffer sizeMethod Detail |
---|
public AudioFormat[] getFormats()
public int getMaxBufferSize()
public int getMinBufferSize()
public boolean isFormatSupported(AudioFormat fmt)
fmt
- the audio format
public boolean matches(Line.Info o)
matches
in class Line.Info
o
- the object to match
public String toString()
toString
in class Line.Info
Object.getClass()
,
Object.hashCode()
,
Class.getName()
,
Integer.toHexString(int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |