org.xiph.speex
Class RawWriter
Raw Audio File Writer.
- Marc Gimpel, Wimba S.A. (mgimpel@horizonwimba.com)
void | close()- Closes the output file.
|
void | open(File file)- Open the output file.
|
void | open(String filename)- Open the output file.
|
void | writeHeader(String comment)- Writes the header pages that start the Ogg Speex file.
|
void | writePacket(byte[] data, int offset, int len)- Writes a packet of audio.
|
buildOggPageHeader, buildSpeexComment, buildSpeexHeader, close, open, open, writeHeader, writeInt, writeInt, writeInt, writeLong, writeLong, writeOggPageHeader, writePacket, writeShort, writeShort, writeShort, writeSpeexComment, writeSpeexHeader, writeString |
out
private OutputStream out
close
public void close()
throws IOException Closes the output file.
- close in interface AudioFileWriter
open
public void open(File file)
throws IOException Open the output file.
- open in interface AudioFileWriter
open
public void open(String filename)
throws IOException Open the output file.
- open in interface AudioFileWriter
filename - - file to open.
writeHeader
public void writeHeader(String comment)
throws IOException Writes the header pages that start the Ogg Speex file.
Prepares file for data to be written.
- writeHeader in interface AudioFileWriter
comment - description to be included in the header.
writePacket
public void writePacket(byte[] data,
int offset,
int len)
throws IOException Writes a packet of audio.
- writePacket in interface AudioFileWriter
data - audio dataoffset - the offset from which to start reading the data.len - the length of data to read.
Copyright © 1999-2004 Wimba S.A. All Rights Reserved.