org.tritonus.saol.engine
Interface SystemOutput

All Superinterfaces:
Output
All Known Implementing Classes:
AudioOutputStreamOutput, FileOutput

public interface SystemOutput
extends Output

Output method for the SA engine. This interface abstracts the way calculated samples are output from the engine. The engine only calls this interface, while implementations of this interface write the samples to a file, a line, a network socket or whatever else.


Method Summary
 void close()
          Closes the output destination.
 void emit()
          Writes the accumulated sample values to the output media.
 
Methods inherited from interface org.tritonus.saol.engine.Output
clear, getWidth, output, output
 

Method Detail

emit

void emit()
          throws java.io.IOException
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.

Throws:
java.io.IOException

close

void close()
           throws java.io.IOException
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.

Throws:
java.io.IOException