|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.red5.io.mp3.impl.MP3Header
public class MP3Header
Header of a MP3 frame.
Constructor Summary | |
---|---|
MP3Header(int data)
Creates MP3 header from frame sync value |
Method Summary | |
---|---|
double |
frameDuration()
Return the duration of the frame for this header. |
int |
frameSize()
Calculate the size of a MP3 frame for this header. |
int |
getBitRate()
Getter for bitrate |
int |
getData()
Getter for frame sync word data |
int |
getSampleRate()
Getter for sample rate |
boolean |
isProtected()
Whether MP3 has protection bit |
boolean |
isStereo()
Whether stereo playback mode is used |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MP3Header(int data) throws Exception
data
- Frame sync data
Exception
- On invalid frame synchronizationMethod Detail |
---|
public int getData()
public boolean isStereo()
true
if stereo mode is used, false
otherwisepublic boolean isProtected()
true
if MP3 has protection bit, false
otherwisepublic int getBitRate()
public int getSampleRate()
public int frameSize()
public double frameDuration()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |