public final class WavUtil extends Object
| Modifier and Type | Field | Description |
|---|---|---|
static int |
DATA_FOURCC |
Four character code for "data".
|
static int |
FMT_FOURCC |
Four character code for "fmt ".
|
static int |
RIFF_FOURCC |
Four character code for "RIFF".
|
static int |
TYPE_ALAW |
WAVE type value for 8-bit ITU-T G.711 A-law audio data.
|
static int |
TYPE_FLOAT |
WAVE type value for float PCM audio data.
|
static int |
TYPE_IMA_ADPCM |
WAVE type value for IMA ADPCM audio data.
|
static int |
TYPE_MLAW |
WAVE type value for 8-bit ITU-T G.711 mu-law audio data.
|
static int |
TYPE_PCM |
WAVE type value for integer PCM audio data.
|
static int |
TYPE_WAVE_FORMAT_EXTENSIBLE |
WAVE type value for extended WAVE format.
|
static int |
WAVE_FOURCC |
Four character code for "WAVE".
|
| Modifier and Type | Method | Description |
|---|---|---|
static int |
getPcmEncodingForType(int type,
int bitsPerSample) |
Returns the
C.PcmEncoding for the given WAVE format type value, or C.ENCODING_INVALID if the type is not a known PCM type. |
static int |
getTypeForPcmEncoding(int pcmEncoding) |
Returns the WAVE format type value for the given
C.PcmEncoding. |
public static final int RIFF_FOURCC
public static final int WAVE_FOURCC
public static final int FMT_FOURCC
public static final int DATA_FOURCC
public static final int TYPE_PCM
public static final int TYPE_FLOAT
public static final int TYPE_ALAW
public static final int TYPE_MLAW
public static final int TYPE_IMA_ADPCM
public static final int TYPE_WAVE_FORMAT_EXTENSIBLE
public static int getTypeForPcmEncoding(@PcmEncoding int pcmEncoding)
C.PcmEncoding.pcmEncoding - The C.PcmEncoding value.IllegalArgumentException - If pcmEncoding is not a C.PcmEncoding, or if
it's C.ENCODING_INVALID or Format.NO_VALUE.@PcmEncoding public static int getPcmEncodingForType(int type, int bitsPerSample)
C.PcmEncoding for the given WAVE format type value, or C.ENCODING_INVALID if the type is not a known PCM type.