com.sun.media.sound
Class SoftSynthesizer.WeakAudioStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.sun.media.sound.SoftSynthesizer.WeakAudioStream
All Implemented Interfaces:
java.io.Closeable
Enclosing class:
SoftSynthesizer

protected static class SoftSynthesizer.WeakAudioStream
extends java.io.InputStream


Field Summary
 javax.sound.sampled.AudioInputStream jitter_stream
           
 SoftAudioPusher pusher
           
 javax.sound.sampled.SourceDataLine sourceDataLine
           
 
Constructor Summary
SoftSynthesizer.WeakAudioStream(javax.sound.sampled.AudioInputStream stream)
           
 
Method Summary
 int available()
           
 void close()
           
 javax.sound.sampled.AudioInputStream getAudioInputStream()
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 void setInputStream(javax.sound.sampled.AudioInputStream stream)
           
 
Methods inherited from class java.io.InputStream
mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pusher

public SoftAudioPusher pusher

jitter_stream

public javax.sound.sampled.AudioInputStream jitter_stream

sourceDataLine

public javax.sound.sampled.SourceDataLine sourceDataLine
Constructor Detail

SoftSynthesizer.WeakAudioStream

public SoftSynthesizer.WeakAudioStream(javax.sound.sampled.AudioInputStream stream)
Method Detail

setInputStream

public void setInputStream(javax.sound.sampled.AudioInputStream stream)

available

public int available()
              throws java.io.IOException
Overrides:
available in class java.io.InputStream
Throws:
java.io.IOException

read

public int read()
         throws java.io.IOException
Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException

getAudioInputStream

public javax.sound.sampled.AudioInputStream getAudioInputStream()

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.InputStream
Throws:
java.io.IOException