|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.sound.sampled.spi.AudioFileReader
com.groovemanager.spi.rex.REXFileReader
This implementation of the AudioFileReader SPI provides access to Recycle files such as REX/REX2/RX2/RCY. The files have to be provided as files because the REX API Doesn´t allow reading audio data from streams or URLs. Also - because the files always have to be loaded completely into memory, there is a maximum file size limit used by this provider. It is assumed that a file bigger than 4 MB won´t be a REX file.
| Field Summary | |
|---|---|
(package private) static boolean |
dllLoaded
Indicates whether the REX dll has already been loaded by this VM |
(package private) static java.lang.String |
LIB_NAME
The name of the jsrex library |
(package private) static java.lang.String |
LIB_VERSION
The version of the jsrex library version |
| Constructor Summary | |
|---|---|
REXFileReader()
|
|
| Method Summary | |
|---|---|
javax.sound.sampled.AudioFileFormat |
getAudioFileFormat(java.io.File file)
The AufdioFileFormat returned by this method will contain some additional information as properties. |
javax.sound.sampled.AudioFileFormat |
getAudioFileFormat(java.io.InputStream stream)
The REX API requires a full file to be loaded into memory for being able to get the AudioFileFormat out of it so a call to this method will always result in an UnsupportedAudioFileException being thrown |
javax.sound.sampled.AudioFileFormat |
getAudioFileFormat(java.net.URL url)
The REX API requires a full file to be loaded into memory for being able to get the AudioFileFormat out of it so a call to this method will always result in an UnsupportedAudioFileException being thrown |
javax.sound.sampled.AudioInputStream |
getAudioInputStream(java.io.File file)
Note that REX files bigger than 4 MB are not supported they will always have to be loaded into memory completely and REX files are usually much smaller than 1 MB. |
javax.sound.sampled.AudioInputStream |
getAudioInputStream(java.io.InputStream stream)
The REX API requires a full file to be loaded into memory for being able to get an AudioInputStream out of it so a call to this method will always result in an UnsupportedAudioFileException being thrown |
javax.sound.sampled.AudioInputStream |
getAudioInputStream(java.net.URL url)
The REX API requires a full file to be loaded into memory for being able to get an AudioInputStream out of it so a call to this method will always result in an UnsupportedAudioFileException being thrown |
(package private) static java.lang.String |
getLibName()
Get the full library name to be loaded |
private static int |
jREXLoadDLL()
|
private static void |
jREXUnloadDLL()
|
(package private) static void |
REXLoadDll()
Load the REX dll only if it has not already been loaded by this VM instance. |
(package private) static void |
REXUnloadDLL()
Unload the REX dll |
(package private) static void |
throwREXError(int code)
Just a delegator to REXError.throwREXError() |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static boolean dllLoaded
static final java.lang.String LIB_NAME
static final java.lang.String LIB_VERSION
| Constructor Detail |
|---|
public REXFileReader()
| Method Detail |
|---|
public javax.sound.sampled.AudioFileFormat getAudioFileFormat(java.io.File file)
throws javax.sound.sampled.UnsupportedAudioFileException,
java.io.IOException
getAudioFileFormat in class javax.sound.sampled.spi.AudioFileReaderjavax.sound.sampled.UnsupportedAudioFileException
java.io.IOExceptionAudioFileReader.getAudioFileFormat(java.io.File),
REXAudioFileFormat
public javax.sound.sampled.AudioFileFormat getAudioFileFormat(java.io.InputStream stream)
throws javax.sound.sampled.UnsupportedAudioFileException,
java.io.IOException
getAudioFileFormat in class javax.sound.sampled.spi.AudioFileReaderjavax.sound.sampled.UnsupportedAudioFileException
java.io.IOExceptionAudioFileReader.getAudioFileFormat(java.io.InputStream)
public javax.sound.sampled.AudioFileFormat getAudioFileFormat(java.net.URL url)
throws javax.sound.sampled.UnsupportedAudioFileException,
java.io.IOException
getAudioFileFormat in class javax.sound.sampled.spi.AudioFileReaderjavax.sound.sampled.UnsupportedAudioFileException
java.io.IOExceptionAudioFileReader.getAudioFileFormat(java.net.URL)
public javax.sound.sampled.AudioInputStream getAudioInputStream(java.io.File file)
throws javax.sound.sampled.UnsupportedAudioFileException,
java.io.IOException
getAudioInputStream in class javax.sound.sampled.spi.AudioFileReaderjavax.sound.sampled.UnsupportedAudioFileException
java.io.IOExceptionAudioFileReader.getAudioInputStream(java.io.File)
public javax.sound.sampled.AudioInputStream getAudioInputStream(java.io.InputStream stream)
throws javax.sound.sampled.UnsupportedAudioFileException,
java.io.IOException
getAudioInputStream in class javax.sound.sampled.spi.AudioFileReaderjavax.sound.sampled.UnsupportedAudioFileException
java.io.IOExceptionAudioFileReader.getAudioInputStream(java.io.InputStream)
public javax.sound.sampled.AudioInputStream getAudioInputStream(java.net.URL url)
throws javax.sound.sampled.UnsupportedAudioFileException,
java.io.IOException
getAudioInputStream in class javax.sound.sampled.spi.AudioFileReaderjavax.sound.sampled.UnsupportedAudioFileException
java.io.IOExceptionAudioFileReader.getAudioInputStream(java.net.URL)static java.lang.String getLibName()
private static int jREXLoadDLL()
private static void jREXUnloadDLL()
static void REXLoadDll()
throws REXError
REXError - If a REXError occuredstatic void REXUnloadDLL()
static void throwREXError(int code)
throws REXError
code - The REXError constant
REXError - If the given constant is not the same as REXError.NoError
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||