ddf.minim
Class MpegAudioFileReaderWorkaround

java.lang.Object
  extended byjavax.sound.sampled.spi.AudioFileReader
      extended byorg.tritonus.share.sampled.file.TAudioFileReader
          extended byjavazoom.spi.mpeg.sampled.file.MpegAudioFileReader
              extended byddf.minim.MpegAudioFileReaderWorkaround

public class MpegAudioFileReaderWorkaround
extends javazoom.spi.mpeg.sampled.file.MpegAudioFileReader

This class comes from the package javazoom.jlgui.basicplayer, but I don't want to lug along jlgui just to be able to play mp3 files in the web browser. So I include it here, with slight modifications for error/debug reporting.


Field Summary
 
Fields inherited from class javazoom.spi.mpeg.sampled.file.MpegAudioFileReader
INITAL_READ_LENGTH, VERSION
 
Constructor Summary
MpegAudioFileReaderWorkaround()
           
 
Method Summary
 javax.sound.sampled.AudioInputStream getAudioInputStream(java.net.URL url, java.lang.String userAgent)
          Returns AudioInputStream from url and userAgent
 
Methods inherited from class javazoom.spi.mpeg.sampled.file.MpegAudioFileReader
getAudioFileFormat, getAudioFileFormat, getAudioFileFormat, getAudioInputStream, getAudioInputStream, getAudioInputStream, loadShoutcastInfo, parseID3v1Frames, parseID3v2Frames, parseText
 
Methods inherited from class org.tritonus.share.sampled.file.TAudioFileReader
calculateFrameSize, getAudioFileFormat, getAudioInputStream, readIeeeExtended, readLittleEndianInt, readLittleEndianShort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MpegAudioFileReaderWorkaround

public MpegAudioFileReaderWorkaround()
Method Detail

getAudioInputStream

public javax.sound.sampled.AudioInputStream getAudioInputStream(java.net.URL url,
                                                                java.lang.String userAgent)
                                                         throws javax.sound.sampled.UnsupportedAudioFileException,
                                                                java.io.IOException
Returns AudioInputStream from url and userAgent

Throws:
javax.sound.sampled.UnsupportedAudioFileException
java.io.IOException