edu.gtts.sautrela.audio
Class AudioReader
java.lang.Object
edu.gtts.sautrela.engine.AbstractDataProcessor
edu.gtts.sautrela.audio.AudioReader
- All Implemented Interfaces:
- DataProcessor, java.beans.BeanInfo, java.io.Serializable
public class AudioReader
- extends AbstractDataProcessor
A simple DataProcessor for reading data from audio files
- See Also:
- Serialized Form
| Fields inherited from interface java.beans.BeanInfo |
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32 |
|
Constructor Summary |
AudioReader()
Creates an AudioReader |
|
Method Summary |
void |
addToQueue(java.net.URL url)
Adds a URL to the read queue. |
void |
closeQueue()
Sets the end of the reading queue. |
void |
editBeanInfo(java.beans.BeanInfo info)
|
static void |
main(java.lang.String[] args)
|
void |
process(Buffer none,
Buffer out)
Reads audio data from files in the read queue. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AudioReader
public AudioReader()
- Creates an AudioReader
addToQueue
public void addToQueue(java.net.URL url)
throws java.lang.InterruptedException
- Adds a URL to the read queue.
- Parameters:
url - The URL to be added
- Throws:
java.lang.InterruptedException
closeQueue
public void closeQueue()
throws java.lang.InterruptedException
- Sets the end of the reading queue.
- Throws:
java.lang.InterruptedException
process
public void process(Buffer none,
Buffer out)
throws DataProcessorException
- Reads audio data from files in the read queue. Each audio file
generates a DataStream.
- Parameters:
none - Input Bufferout - Output Buffer
- Throws:
DataProcessorException
editBeanInfo
public void editBeanInfo(java.beans.BeanInfo info)
- Overrides:
editBeanInfo in class AbstractDataProcessor
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception