edu.cmu.sphinx.tools.audio
Class RawWriter

java.lang.Object
  extended byedu.cmu.sphinx.tools.audio.RawWriter

public class RawWriter
extends java.lang.Object

Writes raw audio to a file, handling sample size, endian format, and signed/unsigned data.


Constructor Summary
RawWriter(java.io.OutputStream outputStream, javax.sound.sampled.AudioFormat audioFormat)
           
 
Method Summary
 void writeSample(int sample)
          Writes the sample to the output stream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RawWriter

public RawWriter(java.io.OutputStream outputStream,
                 javax.sound.sampled.AudioFormat audioFormat)
Method Detail

writeSample

public void writeSample(int sample)
                 throws java.io.IOException
Writes the sample to the output stream.

Throws:
java.io.IOException