public final class MpegAudio extends MetadataContainer
Represents MPEG audio metadata.
Constructor and Description |
---|
MpegAudio()
Initializes a new instance of the
MpegAudio class. |
Modifier and Type | Method and Description |
---|---|
int |
getBitrate()
Gets the bitrate.
|
int |
getChannelMode()
Gets the channel mode.
|
boolean |
getCopyright()
Gets the copyright bit.
|
String |
getEmphasis()
Gets the emphasis.
|
int |
getFrequency()
Gets the frequency.
|
long |
getHeaderPosition()
Gets the header offset.
|
int |
getLayerVersion()
Gets the layer version.
|
int |
getModeExtensionBits()
Gets the mode extension bits.
|
String |
getMpegAudioVersion()
Gets the MPEG audio version.
|
int |
getPaddingBit()
Gets the padding bit.
|
boolean |
getPrivateBit()
Gets a value indicating whether [private bit].
|
boolean |
isOriginal()
Gets the original bit.
|
boolean |
isProtected()
Gets
true if protected. |
void |
setModeExtensionBits(int value)
Sets the mode extension bits.
|
getByType, getKeys, getMetadataType, iterator, readByStringKey
public final String getMpegAudioVersion()
Gets the MPEG audio version. Can be MPEG-1, MPEG-2 etc.
public final int getLayerVersion()
Gets the layer version. For MP3 audio it is '3'.
public final boolean isProtected()
Gets true
if protected.
true
if is protected; otherwise, false
.public final long getHeaderPosition()
Gets the header offset.
public final int getBitrate()
Gets the bitrate.
public final int getFrequency()
Gets the frequency.
public final int getPaddingBit()
Gets the padding bit.
public final boolean getPrivateBit()
Gets a value indicating whether [private bit].
true
if [private bit]; otherwise, false
.public final int getChannelMode()
Gets the channel mode.
public final boolean getCopyright()
Gets the copyright bit.
true
if copyright; otherwise, false
.public final boolean isOriginal()
Gets the original bit.
true
if audio is original; otherwise, false
.public final String getEmphasis()
Gets the emphasis.
public final int getModeExtensionBits()
Gets the mode extension bits.
public final void setModeExtensionBits(int value)
Sets the mode extension bits.
value
- The mode extension bits.Copyright © 2020. All rights reserved.