public class MP3Header extends Object
Constructor and Description |
---|
MP3Header(int data)
Creates MP3 header from frame sync value
|
Modifier and Type | Method and Description |
---|---|
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
|
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()
Copyright © 2006-2012 The Red5 Project