MpegAudioUtil.Header
public final class MpegAudioUtil.Header
Stores the metadata for an MPEG audio frame.
Summary
Public fields |
|
|---|---|
int |
Bitrate of the frame in bit/s. |
int |
Number of audio channels in the frame. |
int |
Size of the frame associated with this header, in bytes. |
@Nullable String |
The MIME type. |
int |
Sample rate in samples per second. |
int |
Number of samples stored in the frame. |
int |
MPEG audio header version. |
Public constructors |
|---|
Header()Constructs an empty instance. |
Header(MpegAudioUtil.Header header)Constructs an instance with values from |
Public methods |
|
|---|---|
boolean |
setForHeaderData(int headerData)Populates the fields in this instance to reflect the MPEG audio header in |
Public fields
Public constructors
Public methods
setForHeaderData
public boolean setForHeaderData(int headerData)
Populates the fields in this instance to reflect the MPEG audio header in headerData, returning whether the header was valid. If false, the values of the fields in this instance will not be updated.
| Parameters | |
|---|---|
int headerData |
Header data to parse. |
| Returns | |
|---|---|
boolean |
True if the fields were populated. False otherwise, indicating that |