pt.tumba.parser.swf
Class MP3Helper

java.lang.Object
  extended by pt.tumba.parser.swf.MP3Helper

public class MP3Helper
extends java.lang.Object

MP3 Utilities

Author:
unknown

Field Summary
private static MP3Helper _theInstance
           
 
Constructor Summary
private MP3Helper()
           
 
Method Summary
static MP3Helper getInstance()
           
static void main(java.lang.String[] args)
          Makes a streaming SWF from an MP3.
static java.util.List streamingBlocks(java.io.InputStream mp3, SWFTagTypes tags, int framesPerSecond)
          Read an MP3 input file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_theInstance

private static final MP3Helper _theInstance
Constructor Detail

MP3Helper

private MP3Helper()
Method Detail

getInstance

public static MP3Helper getInstance()

streamingBlocks

public static java.util.List streamingBlocks(java.io.InputStream mp3,
                                             SWFTagTypes tags,
                                             int framesPerSecond)
                                      throws java.io.IOException
Read an MP3 input file. Write the Sound Stream Header to the SWFTagTypes interface. Return a list of byte[] - one for each Streaming Sound Block

Parameters:
mp3 - Description of the Parameter
tags - Description of the Parameter
framesPerSecond - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Makes a streaming SWF from an MP3. args[0] = MP3 in filename args[1] = SWF out filename

Parameters:
args - The command line arguments
Throws:
java.io.IOException - Description of the Exception