micromod.output
Interface StreamOutputDevice

All Superinterfaces:
OutputDevice
All Known Implementing Classes:
PCM16StreamOutputDevice

public interface StreamOutputDevice
extends OutputDevice

A StreamOutputDevice is fed an 8 bit raw audio stream in the audio format native to the device. The data is written to a buffer, and then on to the output hardware.


Method Summary
 void pause()
          Pause playback immediately.
 void write(byte[] buffer, int length)
          Write length bytes of audio to the output device This method should return only when all of the audio has been written to the device, except if the device is stopped or paused, in which case the method should return immediately.
 
Methods inherited from interface micromod.output.OutputDevice
close, start, stop
 

Method Detail

write

public void write(byte[] buffer,
                  int length)
Write length bytes of audio to the output device This method should return only when all of the audio has been written to the device, except if the device is stopped or paused, in which case the method should return immediately.


pause

public void pause()
Pause playback immediately. Calling start() will continue where you left off.