public static final class MpegAudioUtil.Header extends Object
| Modifier and Type | Field | Description |
|---|---|---|
int |
bitrate |
Bitrate of the frame in bit/s.
|
int |
channels |
Number of audio channels in the frame.
|
int |
frameSize |
Size of the frame associated with this header, in bytes.
|
String |
mimeType |
The mime type.
|
int |
sampleRate |
Sample rate in samples per second.
|
int |
samplesPerFrame |
Number of samples stored in the frame.
|
int |
version |
MPEG audio header version.
|
| Constructor | Description |
|---|---|
Header() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
setForHeaderData(int headerData) |
Populates the fields in this instance to reflect the MPEG audio header in
headerData,
returning whether the header was valid. |
public int version
@Nullable public String mimeType
public int frameSize
public int sampleRate
public int channels
public int bitrate
public int samplesPerFrame
public boolean setForHeaderData(int headerData)
headerData,
returning whether the header was valid. If false, the values of the fields in this instance
will not be updated.headerData - Header data to parse.
headerData is not a valid MPEG audio header.