java.lang.Objectjavax.sound.sampled.Line.Info
javax.sound.sampled.DataLine.Info
public static class DataLine.Info
Besides the class information inherited from its superclass,
DataLine.Info provides additional information specific to data lines.
This information includes:
Line.Info knows the class of the line its describes, a
DataLine.Info object can describe DataLine
subinterfaces such as SourceDataLine,
TargetDataLine, and Clip.
You can query a mixer for lines of any of these types, passing an appropriate
instance of DataLine.Info as the argument to a method such as
Mixer.getLine(Line.Info).
Line.Info| Constructor Summary | |
|---|---|
DataLine.Info(Class<?> lineClass,
AudioFormat format)
Constructs a data line's info object from the specified information, which includes a single audio format. |
|
DataLine.Info(Class<?> lineClass,
AudioFormat[] formats,
int minBufferSize,
int maxBufferSize)
Constructs a data line's info object from the specified information, which includes a set of supported audio formats and a range for the buffer size. |
|
DataLine.Info(Class<?> lineClass,
AudioFormat format,
int bufferSize)
Constructs a data line's info object from the specified information, which includes a single audio format and a desired buffer size. |
|
| Method Summary | |
|---|---|
AudioFormat[] |
getFormats()
Obtains a set of audio formats supported by the data line. |
int |
getMaxBufferSize()
Obtains the maximum buffer size supported by the data line. |
int |
getMinBufferSize()
Obtains the minimum buffer size supported by the data line. |
boolean |
isFormatSupported(AudioFormat format)
Indicates whether this data line supports a particular audio format. |
boolean |
matches(Line.Info info)
Determines whether the specified info object matches this one. |
String |
toString()
Obtains a textual description of the data line info. |
| 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<?> lineClass, AudioFormat[] formats, int minBufferSize, int maxBufferSize)
lineClass - the class of the data line described by the info objectformats - set of formats supportedminBufferSize - minimum buffer size supported by the data line, in bytesmaxBufferSize - maximum buffer size supported by the data line, in bytespublic DataLine.Info(Class<?> lineClass, AudioFormat format, int bufferSize)
lineClass - the class of the data line described by the info objectformat - desired formatbufferSize - desired buffer size in bytespublic DataLine.Info(Class<?> lineClass, AudioFormat format)
lineClass - the class of the data line described by the info objectformat - desired format| Method Detail |
|---|
public AudioFormat[] getFormats()
isFormatSupported(AudioFormat) might return
true for certain additional formats that are missing from
the set returned by getFormats(). The reverse is not
the case: isFormatSupported(AudioFormat) is guaranteed to return
true for all formats returned by getFormats().
Some fields in the AudioFormat instances can be set to
NOT_SPECIFIED
if that field does not apply to the format,
or if the format supports a wide range of values for that field.
For example, a multi-channel device supporting up to
64 channels, could set the channel field in the
AudioFormat instances returned by this
method to NOT_SPECIFIED.
isFormatSupported(AudioFormat)public boolean isFormatSupported(AudioFormat format)
true if
the specified format matches any of the supported formats.
format - the audio format for which support is queried.
true if the format is supported, otherwise falsegetFormats(),
AudioFormat.matches(javax.sound.sampled.AudioFormat)public int getMinBufferSize()
AudioSystem.NOT_SPECIFIEDpublic int getMaxBufferSize()
AudioSystem.NOT_SPECIFIEDpublic boolean matches(Line.Info info)
info - the info object which is being compared to this one
true if this object matches the one specified,
otherwise false.public String toString()
Ces informations proviennent du site de http://java.sun.com
Le contenu de cette page provient du site de Sun, et est généré depuis un cache sur l'infobrol après certains traitements automatisés. La présentation peut donc différer du document original, mais le contenu aussi. Vous pouvez utiliser ce bouton pour afficher la page originale du site de Sun :
Maintenir les pages en cache sur différents sites peut offrir plus de disponibilité.
Chaque page est indexée dans la base de donnée, ce qui permet de retrouver facilement les informations, au moyen des sommaires, du moteur de recherche interne, etc.
Des facilités sont mises en place pour que les membres de l'infobrol puissent effectuer des traductions en français des différents documents. Ceci devrait permettre aux débutants en programmation Java de consulter les API en français s'ils maîtrisent moins bien la langue de Shakespeare. Dans le cas où une traduction a été soumise, elle est disponible au moyen d'un lien en bas de page. Si la traduction a été validée, la page s'affiche par défaut en français, et un lien en bas de page permet d'atteindre la version en anglais.
Le code sur l'infobrol est automatiquement coloré selon la syntaxe, et les différents mots clés sont transformés en liens pour accéder rapidement aux informations.
Vous avez la possibilité de partager vos expériences en proposant vos propres extraits de code en utilisant le bouton "ajouter un commentaire" en bas de page. Si vous visitez simplement l'infobrol, vous avez déjà accès à cette fonction, mais si vous étes membre du brol, vous pouvez en plus utiliser des boutons supplémentaires de mise en forme, dont la coloration automatique de vos extraits de codes.
Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher les interactions avec les réseaux sociaux sur ces pages.
9 mots clés dont 0 définis manuellement (plus d'information...).
Avertissement
Cette page ne possède pas encore de mots clés manuels, ceci est donc un exemple automatique (les niveaux de pertinence sont fictifs, mais les liens sont valables). Pour tester le nuage avec une page qui contient des mots définis manuellement, vous pouvez cliquer ici.Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher le nuage de mots clés.
Recherche (afficher)
Utilisateur (masquer)
Navigation (masquer)
Apparence (afficher)
Stats (afficher)
Citation (masquer)