ddf.minim.spi
Interface AudioStream

All Superinterfaces:
AudioResource
All Known Subinterfaces:
AudioRecordingStream, AudioSynthesizer

public interface AudioStream
extends AudioResource

An AudioStream is a stream of samples that is coming from somewhere. Users of an AudioStream don't really need to know where the samples are coming from. However, typically they will be read from a Line or a file. An AudioStream needs to be opened before being used and closed when you are finished with it.

Author:
Damien Di Fede

Method Summary
 int bufferSize()
          The size of the buffer that will be sent to listeners and effects.
 void setAudioEffect(AudioEffect effect)
          Set the AudioEffect to apply to this stream.
 void setAudioListener(AudioListener listener)
          Set the AudioListener to receive samples from this source.
 
Methods inherited from interface ddf.minim.spi.AudioResource
close, getControls, getFormat, open
 

Method Detail

setAudioListener

void setAudioListener(AudioListener listener)
Set the AudioListener to receive samples from this source.

Parameters:
listener - the AudioListener to receive samples

setAudioEffect

void setAudioEffect(AudioEffect effect)
Set the AudioEffect to apply to this stream.

Parameters:
effect - the AudioEffect to apply to the stream

bufferSize

int bufferSize()
The size of the buffer that will be sent to listeners and effects.

Returns:
the size of the buffer sent to listeners