inpro.audio
Class SilenceStream

java.lang.Object
  extended by java.io.InputStream
      extended by javax.sound.sampled.AudioInputStream
          extended by inpro.audio.SilenceStream
All Implemented Interfaces:
java.io.Closeable

public class SilenceStream
extends javax.sound.sampled.AudioInputStream

Author:
timo

Nested Class Summary
private static class SilenceStream.ZeroInputStream
           
 
Field Summary
 
Fields inherited from class javax.sound.sampled.AudioInputStream
format, frameLength, framePos, frameSize
 
Constructor Summary
SilenceStream(javax.sound.sampled.AudioFormat format, long length)
           
SilenceStream(int milliseconds)
          create an AudioInputStream that contains that many milliseconds of silence in 16000Hz, 1 channel, 16 bits per sample (never mind signedness and endiannness: zero is zero)
 
Method Summary
 
Methods inherited from class javax.sound.sampled.AudioInputStream
available, close, getFormat, getFrameLength, mark, markSupported, read, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SilenceStream

public SilenceStream(int milliseconds)
create an AudioInputStream that contains that many milliseconds of silence in 16000Hz, 1 channel, 16 bits per sample (never mind signedness and endiannness: zero is zero)

Parameters:
milliseconds -

SilenceStream

public SilenceStream(javax.sound.sampled.AudioFormat format,
                     long length)