public final class GaplessInfoHolder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
encoderDelay
The number of samples to trim from the start of the decoded audio stream, or
Format.NO_VALUE if not set. |
int |
encoderPadding
The number of samples to trim from the end of the decoded audio stream, or
Format.NO_VALUE if not set. |
Constructor and Description |
---|
GaplessInfoHolder()
Creates a new holder for gapless playback information.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasGaplessInfo()
Returns whether
encoderDelay and encoderPadding have been set. |
boolean |
setFromComment(java.lang.String name,
java.lang.String data)
Populates the holder with data parsed from a gapless playback comment (stored in an ID3 header
or MPEG 4 user data), if valid and non-zero.
|
boolean |
setFromXingHeaderValue(int value)
Populates the holder with data from an MP3 Xing header, if valid and non-zero.
|
public int encoderDelay
Format.NO_VALUE
if not set.public int encoderPadding
Format.NO_VALUE
if not set.public GaplessInfoHolder()
public boolean setFromXingHeaderValue(int value)
value
- The 24-bit value to decode.public boolean setFromComment(java.lang.String name, java.lang.String data)
name
- The comment's identifier.data
- The comment's payload data.public boolean hasGaplessInfo()
encoderDelay
and encoderPadding
have been set.