org.tritonus.sampled.file
Class AiffAudioOutputStream

java.lang.Object
  extended byorg.tritonus.share.sampled.file.TAudioOutputStream
      extended byorg.tritonus.sampled.file.AiffAudioOutputStream
All Implemented Interfaces:
AudioOutputStream

public class AiffAudioOutputStream
extends TAudioOutputStream

AudioOutputStream for AIFF and AIFF-C files.

Author:
Florian Bomers

Constructor Summary
AiffAudioOutputStream(AudioFormat audioFormat, AudioFileFormat.Type fileType, long lLength, TDataOutputStream dataOutputStream)
           
 
Method Summary
 void close()
          Closes the stream.
protected  void patchHeader()
           
protected  void writeHeader()
          Writes the header of the audio file.
 void writeIeeeExtended(TDataOutputStream dos, float sampleRate)
           
 
Methods inherited from class org.tritonus.share.sampled.file.TAudioOutputStream
getCalculatedLength, getDataOutputStream, getFormat, getLength, setLengthFromCalculatedLength, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AiffAudioOutputStream

public AiffAudioOutputStream(AudioFormat audioFormat,
                             AudioFileFormat.Type fileType,
                             long lLength,
                             TDataOutputStream dataOutputStream)
Method Detail

writeHeader

protected void writeHeader()
                    throws IOException
Description copied from class: TAudioOutputStream
Writes the header of the audio file.

Specified by:
writeHeader in class TAudioOutputStream
Throws:
IOException

patchHeader

protected void patchHeader()
                    throws IOException
Overrides:
patchHeader in class TAudioOutputStream
Throws:
IOException

close

public void close()
           throws IOException
Description copied from class: TAudioOutputStream
Closes the stream. This does write remaining buffered data to the destination, backpatch the header, if necessary, and closes the destination.

Specified by:
close in interface AudioOutputStream
Overrides:
close in class TAudioOutputStream
Throws:
IOException

writeIeeeExtended

public void writeIeeeExtended(TDataOutputStream dos,
                              float sampleRate)
                       throws IOException
Throws:
IOException