Save This Page
Home » openjdk-7 » com.sun.media » sound » [javadoc | source]
com.sun.media.sound
public class: DataPusher [javadoc | source]
java.lang.Object
   com.sun.media.sound.DataPusher

All Implemented Interfaces:
    Runnable

Class to write an AudioInputStream to a SourceDataLine. Was previously an inner class in various classes like JavaSoundAudioClip and sun.audio.AudioDevice. It auto-opens and closes the SourceDataLine.
Constructor:
 public DataPusher(SourceDataLine sourceLine,
    AudioInputStream ais) 
 public DataPusher(SourceDataLine sourceLine,
    AudioFormat format,
    byte[] audioData,
    int byteLength) 
Method from com.sun.media.sound.DataPusher Summary:
close,   run,   start,   start,   stop
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.media.sound.DataPusher Detail:
 synchronized  void close() 
 public  void run() 
    Write data to the source data line.
 public synchronized  void start() 
 public synchronized  void start(boolean loop) 
 public synchronized  void stop()