ddf.minim
Interface AudioStream

All Superinterfaces:
Effectable, Recordable
All Known Subinterfaces:
AudioRecording, AudioSynthesizer

public interface AudioStream
extends Effectable, Recordable

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
 void close()
          Closes the stream, you will no longer be able to get audio from it.
 javax.sound.sampled.DataLine getDataLine()
          Returns the DataLine being used by this AudioStream, if it exists.
 void open()
          Opens the stream for reading.
 
Methods inherited from interface ddf.minim.Effectable
addEffect, clearEffects, disableEffect, disableEffect, effectCount, effects, enableEffect, enableEffect, getEffect, hasEffect, isEffected, isEnabled, noEffects, removeEffect, removeEffect
 
Methods inherited from interface ddf.minim.Recordable
addListener, bufferSize, getFormat, removeListener, sampleRate, type
 

Method Detail

open

public void open()
Opens the stream for reading.


close

public void close()
Closes the stream, you will no longer be able to get audio from it.


getDataLine

public javax.sound.sampled.DataLine getDataLine()
Returns the DataLine being used by this AudioStream, if it exists.

Returns:
the DataLine being used by this stream, or null if it is not using a DataLine