public final class MpegAudioUtil extends Object
Modifier and Type | Class | Description |
---|---|---|
static class |
MpegAudioUtil.Header |
Stores the metadata for an MPEG audio frame.
|
Modifier and Type | Field | Description |
---|---|---|
static int |
MAX_FRAME_SIZE_BYTES |
Theoretical maximum frame size for an MPEG audio stream, which occurs when playing a Layer 2
MPEG 2.5 audio stream at 16 kb/s (with padding).
|
static int |
MAX_RATE_BYTES_PER_SECOND |
Maximum rate for an MPEG audio stream corresponding to MPEG-1 layer III (320 kbit/s), in bytes
per second.
|
Modifier and Type | Method | Description |
---|---|---|
static int |
getFrameSize(int headerData) |
Returns the size of the frame associated with
header , or C.LENGTH_UNSET if it
is invalid. |
static int |
parseMpegAudioFrameSampleCount(int headerData) |
Returns the number of samples per frame associated with
headerData , or C.LENGTH_UNSET if it is invalid. |
public static final int MAX_FRAME_SIZE_BYTES
public static final int MAX_RATE_BYTES_PER_SECOND
public static int getFrameSize(int headerData)
header
, or C.LENGTH_UNSET
if it
is invalid.public static int parseMpegAudioFrameSampleCount(int headerData)
headerData
, or C.LENGTH_UNSET
if it is invalid.