org.tritonus.sampled.file
Class AuAudioOutputStream
java.lang.Object
org.tritonus.share.sampled.file.TAudioOutputStream
org.tritonus.sampled.file.AuAudioOutputStream
- All Implemented Interfaces:
- AudioOutputStream
- public class AuAudioOutputStream
- extends TAudioOutputStream
AudioOutputStream for AU files.
- Author:
- Florian Bomers, Matthias Pfisterer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AuAudioOutputStream
public AuAudioOutputStream(AudioFormat audioFormat,
long lLength,
TDataOutputStream dataOutputStream)
writeText
protected static void writeText(TDataOutputStream dos,
String s)
throws IOException
- Writes a null-terminated ascii string s to f.
The total number of bytes written is aligned on a 2byte boundary.
- Throws:
IOException
- Write error.
getTextLength
protected static int getTextLength(String s)
- Returns number of bytes that have to written for string s (with alignment)
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