micromod.output
Interface OutputDevice

All Known Subinterfaces:
StreamOutputDevice
All Known Implementing Classes:
PCM16StreamOutputDevice

public interface OutputDevice

An OutputDevice represents the basic functionality of an audio device. The way in which the device is configured and opened, and the way in which audio is written to the device is not defined at this stage.


Method Summary
 void close()
          Close the output device and release any resources.
 void start()
          Begin playing audio.
 void stop()
          Stop playback.
 

Method Detail

start

public void start()
Begin playing audio. You should call this if you want any output! You must also call this after pause() or stop() to resume playback..


stop

public void stop()
Stop playback. All audio written to the device should be played before this method returns.


close

public void close()
Close the output device and release any resources. Once this method is called, the device must be reopened to allow playback. Reopening could involve reinstantiation or calling a device specific open() method.