Package ipsk.audio.synth
Class WhiteNoiseGenerator
- java.lang.Object
-
- java.io.InputStream
-
- ipsk.io.FramedInputStream
-
- ipsk.audio.synth.WhiteNoiseGenerator
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class WhiteNoiseGenerator extends FramedInputStream
- Author:
- K.Jaensch, klausj@phonetik.uni-muenchen.de
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_BUF_SIZE_FRAMES
-
Fields inherited from class ipsk.io.FramedInputStream
frameSizeException
-
-
Constructor Summary
Constructors Constructor Description WhiteNoiseGenerator(javax.sound.sampled.AudioFormat audioFormat, long length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
read(byte[] buf, int offset, int len)
-
Methods inherited from class ipsk.io.FramedInputStream
read, read
-
-
-
-
Field Detail
-
DEFAULT_BUF_SIZE_FRAMES
public static final int DEFAULT_BUF_SIZE_FRAMES
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WhiteNoiseGenerator
public WhiteNoiseGenerator(javax.sound.sampled.AudioFormat audioFormat, long length) throws AudioFormatNotSupportedException
- Throws:
AudioFormatNotSupportedException
-
-
Method Detail
-
read
public int read(byte[] buf, int offset, int len) throws java.io.IOException
- Specified by:
read
in classFramedInputStream
- Throws:
java.io.IOException
-
-