|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpt.tumba.parser.swf.MP3Frame
public class MP3Frame
An MP3 sound data frame.
Field Summary | |
---|---|
protected int |
bit_rate
Description of the Field |
protected int |
bitRate
Description of the Field |
static int |
CHANNEL_MODE_DUAL_CHANNEL
Description of the Field |
static int |
CHANNEL_MODE_JOINT_STEREO
Description of the Field |
static int |
CHANNEL_MODE_MONO
Description of the Field |
static int |
CHANNEL_MODE_STEREO
Description of the Field |
protected int |
channelMode
Description of the Field |
protected boolean |
copyrighted
Description of the Field |
protected byte[] |
data
Description of the Field |
protected int |
emphasis
Description of the Field |
static int |
EMPHASIS_50_15_MS
Description of the Field |
static int |
EMPHASIS_CCIT_J17
Description of the Field |
static int |
EMPHASIS_NONE
Description of the Field |
static int |
EMPHASIS_RESERVED
Description of the Field |
private static int |
FRAME_SAMPLES_MPEG_1
|
private static int |
FRAME_SAMPLES_MPEG_2
|
protected boolean |
isProtected
Description of the Field |
protected int |
modeExtension
Description of the Field |
static int |
MPEG_Layer_1
Description of the Field |
static int |
MPEG_Layer_2
Description of the Field |
static int |
MPEG_Layer_3
Description of the Field |
static int |
MPEG_Version_1
Description of the Field |
static int |
MPEG_Version_2
Description of the Field |
static int |
MPEG_Version_2_5
Description of the Field |
protected static int[] |
MPEG10SampleRates
Description of the Field |
protected static int[] |
MPEG1BitRates
Description of the Field |
protected static int[] |
MPEG20SampleRates
Description of the Field |
protected static int[] |
MPEG25SampleRates
Description of the Field |
protected static int[] |
MPEG2BitRates
Description of the Field |
protected int |
mpegLayer
Description of the Field |
protected int |
mpegVersion
Description of the Field |
protected boolean |
original
Description of the Field |
protected boolean |
padded
Description of the Field |
protected int |
sample_rate
Description of the Field |
protected int |
sampleRate
Description of the Field |
Constructor Summary | |
---|---|
MP3Frame()
Constructor for the MP3Frame object |
Method Summary | |
---|---|
int |
getBitRate()
Gets the bitRate attribute of the MP3Frame object |
int |
getDataLength()
Gets the dataLength attribute of the MP3Frame object |
int |
getSampleRate()
Gets the sampleRate attribute of the MP3Frame object |
int |
getSamplesPerFrame()
Gets the samplesPerFrame attribute of the MP3Frame object |
boolean |
isStereo()
Gets the stereo attribute of the MP3Frame object |
static MP3Frame |
readFrame(java.io.InputStream in)
Read the next MP3 frame from the stream - return null if no more |
java.lang.String |
toString()
Description of the Method |
void |
write(java.io.OutputStream out)
Description of the Method |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int MPEG_Version_2_5
public static final int MPEG_Version_2
public static final int MPEG_Version_1
public static final int MPEG_Layer_3
public static final int MPEG_Layer_2
public static final int MPEG_Layer_1
public static final int CHANNEL_MODE_STEREO
public static final int CHANNEL_MODE_JOINT_STEREO
public static final int CHANNEL_MODE_DUAL_CHANNEL
public static final int CHANNEL_MODE_MONO
public static final int EMPHASIS_NONE
public static final int EMPHASIS_50_15_MS
public static final int EMPHASIS_RESERVED
public static final int EMPHASIS_CCIT_J17
protected static final int[] MPEG1BitRates
protected static final int[] MPEG2BitRates
protected static final int[] MPEG10SampleRates
protected static final int[] MPEG20SampleRates
protected static final int[] MPEG25SampleRates
private static int FRAME_SAMPLES_MPEG_1
private static int FRAME_SAMPLES_MPEG_2
protected int mpegVersion
protected int mpegLayer
protected boolean isProtected
protected int bitRate
protected int sampleRate
protected boolean padded
protected int channelMode
protected int modeExtension
protected boolean copyrighted
protected boolean original
protected int emphasis
protected byte[] data
protected int bit_rate
protected int sample_rate
Constructor Detail |
---|
public MP3Frame()
Method Detail |
---|
public int getBitRate()
public int getSampleRate()
public boolean isStereo()
public int getDataLength()
public int getSamplesPerFrame()
public static MP3Frame readFrame(java.io.InputStream in) throws java.io.IOException
in
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void write(java.io.OutputStream out) throws java.io.IOException
out
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |