java.lang.Objectjavax.sound.sampled.AudioFormat.Encoding
public static class AudioFormat.Encoding
The Encoding class names the specific type of data representation
used for an audio stream. The encoding includes aspects of the
sound format other than the number of channels, sample rate, sample size,
frame rate, frame size, and byte order.
One ubiquitous type of audio encoding is pulse-code modulation (PCM), which is simply a linear (proportional) representation of the sound waveform. With PCM, the number stored in each sample is proportional to the instantaneous amplitude of the sound pressure at that point in time. The numbers are frequently signed or unsigned integers. Besides PCM, other encodings include mu-law and a-law, which are nonlinear mappings of the sound amplitude that are often used for recording speech.
You can use a predefined encoding by referring to one of the static
objects created by this class, such as PCM_SIGNED or
PCM_UNSIGNED. Service providers can create new encodings, such as
compressed audio formats or floating-point PCM samples, and make
these available through the class.
AudioSystem
The Encoding class is static, so that all
AudioFormat objects that have the same encoding will refer
to the same object (rather than different instances of the same class).
This allows matches to be made by checking that two format's encodings
are equal.
AudioFormat,
FormatConversionProvider| Field Summary | |
|---|---|
static AudioFormat.Encoding |
ALAW
Specifies a-law encoded data. |
static AudioFormat.Encoding |
PCM_SIGNED
Specifies signed, linear PCM data. |
static AudioFormat.Encoding |
PCM_UNSIGNED
Specifies unsigned, linear PCM data. |
static AudioFormat.Encoding |
ULAW
Specifies u-law encoded data. |
| Constructor Summary | |
|---|---|
AudioFormat.Encoding(String name)
Constructs a new encoding. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Finalizes the equals method |
int |
hashCode()
Finalizes the hashCode method |
String |
toString()
Provides the String representation of the encoding. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final AudioFormat.Encoding PCM_SIGNED
public static final AudioFormat.Encoding PCM_UNSIGNED
public static final AudioFormat.Encoding ULAW
public static final AudioFormat.Encoding ALAW
| Constructor Detail |
|---|
public AudioFormat.Encoding(String name)
name - the name of the new type of encoding| Method Detail |
|---|
public final boolean equals(Object obj)
obj - the reference object with which to compare.
true if this object is the same as the obj
argument; false otherwise.Object.hashCode(),
Hashtablepublic final int hashCode()
Object.equals(java.lang.Object),
Hashtablepublic final String toString()
String representation of the encoding. This String is
the same name that was passed to the constructor. For the predefined encodings, the name
is similar to the encoding's variable (field) name. For example, PCM_SIGNED.toString() returns
the name "pcm_signed".
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.
La base de données est temporairement indisponible
Le site rencontre momentanément quelques problèmes...
La base de données est temporairement indisponible (), ce qui explique que de nombreuses fonctions ne soient temporairement pas accessibles (par exemple les liens de navigation, les sommaires, etc.) et que l'affichage des pages soit beaucoup plus lent.
Veuillez réessayer dans quelques minutes (les tests automatiques sont effectués toutes les 15 minutes).
Je vous présente mes excuses pour le désagrément que cela engendre.
Steph.
Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher les interactions avec les réseaux sociaux sur ces pages.
Recherche (afficher)
Utilisateur (afficher)
Navigation (masquer)
Apparence (afficher)
Stats (afficher)
Citation (masquer)