org.tritonus.saol.engine
Class AudioOutputStreamOutput

java.lang.Object
  extended by org.tritonus.saol.engine.Bus
      extended by org.tritonus.saol.engine.AudioOutputStreamOutput
All Implemented Interfaces:
Output, SystemOutput
Direct Known Subclasses:
FileOutput

public class AudioOutputStreamOutput
extends Bus
implements SystemOutput


Constructor Summary
AudioOutputStreamOutput(AudioOutputStream audioOutputStream)
           
 
Method Summary
 void close()
          Closes the output destination.
 void emit()
          Writes the accumulated sample values to the output media.
 
Methods inherited from class org.tritonus.saol.engine.Bus
clear, getValues, getWidth, output, output
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.tritonus.saol.engine.Output
clear, getWidth, output, output
 

Constructor Detail

AudioOutputStreamOutput

public AudioOutputStreamOutput(AudioOutputStream audioOutputStream)
Method Detail

emit

public void emit()
          throws java.io.IOException
Description copied from interface: SystemOutput
Writes the accumulated sample values to the output media. This method must be called by the engine after all instrument's a-cycle code for this cycle is executed. It is intended to actually write the resulting sample data to the desired location. The desired location may be a file, a line, or somthing else, depending on this interface' implementation.

Specified by:
emit in interface SystemOutput
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Description copied from interface: SystemOutput
Closes the output destination. This method must be called by the engine after execution, i.e. when there are no further a-cycles. It is intended to close files, lines, or other output destinations.

Specified by:
close in interface SystemOutput
Throws:
java.io.IOException