public class MPEGAudioSamples
extends java.lang.Object
![]() |
![]() |
The MPEG audio samples follows the MPEG side information in an MPEG audio frame. It contains the actual digital audio samples used by mp3 players to produce the sound.
MPEGFrame| Constructor and Description |
|---|
MPEGAudioSamples()
default constructor.
|
MPEGAudioSamples(byte[] bytes,
int index)
constructor.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getData()
gets the raw digital audio samples stored in the mpeg audio frame.
|
int |
getSize()
gets the size (in bytes) of the raw binary data comprising the mpeg audio samples.
|
java.lang.String |
toString()
gets a string representation of the mpeg audio frame's audio samples.
|
public MPEGAudioSamples()
public MPEGAudioSamples(byte[] bytes,
int index)
throws ParseException
bytes - the raw bytes of an MPEG audio frame.index - the offset into the bytes of the MPEG audio frame where the audio samples begin.ParseException - if the offset into the byte stream is larger than the size of the mpeg audio frame.public byte[] getData()
public int getSize()
public java.lang.String toString()
toString in class java.lang.Object