docs/doc/reference/com/google/android/exoplayer2/audio/WavUtil.html
Package com.google.android.exoplayer2.audio
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classWavUtilextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")
Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
Utilities for handling WAVE files.
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| static int | DATA_FOURCC |
Deprecated.
Four character code for "data".
|
| static int | DS64_FOURCC |
Deprecated.
Four character code for "ds64".
|
| static int | FMT_FOURCC |
Deprecated.
Four character code for "fmt ".
|
| static int | RF64_FOURCC |
Deprecated.
Four character code for "RF64".
|
| static int | RIFF_FOURCC |
Deprecated.
Four character code for "RIFF".
|
| static int | TYPE_ALAW |
Deprecated.
WAVE type value for 8-bit ITU-T G.711 A-law audio data.
|
| static int | TYPE_FLOAT |
Deprecated.
WAVE type value for float PCM audio data.
|
| static int | TYPE_IMA_ADPCM |
Deprecated.
WAVE type value for IMA ADPCM audio data.
|
| static int | TYPE_MLAW |
Deprecated.
WAVE type value for 8-bit ITU-T G.711 mu-law audio data.
|
| static int | TYPE_PCM |
Deprecated.
WAVE type value for integer PCM audio data.
|
| static int | TYPE_WAVE_FORMAT_EXTENSIBLE |
Deprecated.
WAVE type value for extended WAVE format.
|
| static int | WAVE_FOURCC |
Deprecated.
Four character code for "WAVE". |
All Methods Static Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| static @com.google.android.exoplayer2.C.PcmEncoding int | getPcmEncodingForType(int type, int bitsPerSample) |
Deprecated.
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(@com.google.android.exoplayer2.C.PcmEncoding int pcmEncoding) |
Deprecated.
Returns the WAVE format type value for the given C.PcmEncoding.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public static final int RIFF_FOURCC
Deprecated.
Four character code for "RIFF". See Also:Constant Field Values
-
public static final int WAVE_FOURCC
Deprecated.
Four character code for "WAVE". See Also:Constant Field Values
-
public static final int FMT_FOURCC
Deprecated.
Four character code for "fmt ". See Also:Constant Field Values
-
public static final int DATA_FOURCC
Deprecated.
Four character code for "data". See Also:Constant Field Values
-
public static final int RF64_FOURCC
Deprecated.
Four character code for "RF64". See Also:Constant Field Values
-
public static final int DS64_FOURCC
Deprecated.
Four character code for "ds64". See Also:Constant Field Values
-
public static final int TYPE_PCM
Deprecated.
WAVE type value for integer PCM audio data. See Also:Constant Field Values
-
public static final int TYPE_FLOAT
Deprecated.
WAVE type value for float PCM audio data. See Also:Constant Field Values
-
public static final int TYPE_ALAW
Deprecated.
WAVE type value for 8-bit ITU-T G.711 A-law audio data. See Also:Constant Field Values
-
public static final int TYPE_MLAW
Deprecated.
WAVE type value for 8-bit ITU-T G.711 mu-law audio data. See Also:Constant Field Values
-
public static final int TYPE_IMA_ADPCM
Deprecated.
WAVE type value for IMA ADPCM audio data. See Also:Constant Field Values
-
public static final int TYPE_WAVE_FORMAT_EXTENSIBLE
Deprecated.
WAVE type value for extended WAVE format. See Also:Constant Field Values
-
public static int getTypeForPcmEncoding(@com.google.android.exoplayer2.C.PcmEncoding int pcmEncoding)
Deprecated.
Returns the WAVE format type value for the given C.PcmEncoding.
Parameters:pcmEncoding - The C.PcmEncoding value.Returns:The corresponding WAVE format type.Throws:IllegalArgumentException - If pcmEncoding is not a C.PcmEncoding, or if it's C.ENCODING_INVALID or Format.NO_VALUE.
-
public static @com.google.android.exoplayer2.C.PcmEncoding int getPcmEncodingForType(int type,
int bitsPerSample)
Deprecated.
Returns the C.PcmEncoding for the given WAVE format type value, or C.ENCODING_INVALID if the type is not a known PCM type.