| java.lang.Object org.openlaszlo.iv.flash.util.MP3Helper
MP3Helper | public class MP3Helper (Code) | | Class for parsing MP3 files, but only accepts those which the flash player
understands.
author: James Taylor |
Constructor Summary | |
public | MP3Helper(FlashBuffer fob) Creates a new MP3Helper which reads MP3Frames from the supplied buffer. |
getFrequency | public int getFrequency()(Code) | | Frequency accessor
|
getSamples | public int getSamples()(Code) | | Samples accessor
|
getSamplesPerFrame | public int getSamplesPerFrame()(Code) | | SamplesPerFrame accessor
|
getStereo | public boolean getStereo()(Code) | | Stereo accessor
|
nextFrame | public byte[] nextFrame() throws IOException, IVException(Code) | | Processes the next frame in the stream, and sets the frame properties
( mode, layer, bitrate, frequency, framesize, pad )
the contents of the frame. |
readHeader | public byte[] readHeader() throws IOException, IVException(Code) | | Reads the header of the next MP3 frame, synchronzing the stream first
if that has not yet been done.
the 4 byte header, or null if there are no more frames. |
|
|