Sautrela

edu.gtts.sautrela.audio
Class AudioPlayer

java.lang.Object
  extended by edu.gtts.sautrela.engine.AbstractDataProcessor
      extended by edu.gtts.sautrela.audio.AudioPlayer
All Implemented Interfaces:
DataProcessor, java.beans.BeanInfo, java.io.Serializable

public class AudioPlayer
extends AbstractDataProcessor

See Also:
Serialized Form

Field Summary
static javax.sound.sampled.AudioFormat DEFAULT_AUDIOFORMAT
           
 
Fields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
 
Constructor Summary
AudioPlayer()
          Creates an AudioPlayer
 
Method Summary
 void editBeanInfo(java.beans.BeanInfo info)
           
 boolean isBeepAdded()
          Getter for property beepAdded.
static void main(java.lang.String[] args)
           
 void process(Buffer in, Buffer tryMe)
          Plays the input audio data
 void setBeepAdded(boolean beepAdded)
          Setter for property beepAdded.
 
Methods inherited from class edu.gtts.sautrela.engine.AbstractDataProcessor
getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, getName, getPropertyDescriptors, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_AUDIOFORMAT

public static final javax.sound.sampled.AudioFormat DEFAULT_AUDIOFORMAT
Constructor Detail

AudioPlayer

public AudioPlayer()
Creates an AudioPlayer

Method Detail

isBeepAdded

public boolean isBeepAdded()
Getter for property beepAdded.

Returns:
Value of property beepAdded.

setBeepAdded

public void setBeepAdded(boolean beepAdded)
Setter for property beepAdded.

Parameters:
beepAdded - New value of property beepAdded.

process

public void process(Buffer in,
                    Buffer tryMe)
             throws DataProcessorException
Plays the input audio data

Parameters:
in - Input Buffer
tryMe - 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

Sautrela