|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.xiph.speex.AudioFileWriter
org.xiph.speex.OggSpeexWriter
Ogg Speex Writer
| Field Summary | |
private int |
channels
|
private byte[] |
dataBuffer
|
private int |
dataBufferPtr
|
private long |
granulepos
|
private byte[] |
headerBuffer
|
private int |
headerBufferPtr
|
private int |
mode
|
private int |
nframes
|
private java.io.OutputStream |
out
|
private int |
packetCount
|
private int |
pageCount
|
private int |
sampleRate
|
private int |
size
|
private int |
streamSerialNumber
|
private boolean |
vbr
|
| Constructor Summary | |
OggSpeexWriter()
Builds an Ogg Speex Writer. |
|
OggSpeexWriter(int mode,
int sampleRate,
int channels,
int nframes,
boolean vbr)
Builds an Ogg Speex Writer. |
|
| Method Summary | |
void |
close()
Closes the output file. |
private void |
flush(boolean eos)
Flush the Ogg page out of the buffers into the file. |
void |
open(java.lang.String filename)
Open the output file. |
private void |
setFormat(int mode,
int sampleRate,
int channels,
int nframes,
boolean vbr)
Sets the output format. |
void |
setSerialNumber(int serialNumber)
Sets the Stream Serial Number. |
void |
writeHeader(java.lang.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. |
| Methods inherited from class org.xiph.speex.AudioFileWriter |
writeInt, writeInt, writeLong, writeShort, writeShort |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.io.OutputStream out
private int mode
private int sampleRate
private int channels
private int nframes
private boolean vbr
private int size
private int streamSerialNumber
private byte[] dataBuffer
private int dataBufferPtr
private byte[] headerBuffer
private int headerBufferPtr
private int pageCount
private int packetCount
private long granulepos
| Constructor Detail |
public OggSpeexWriter()
public OggSpeexWriter(int mode,
int sampleRate,
int channels,
int nframes,
boolean vbr)
mode - sampleRate - channels - nframes - vbr - | Method Detail |
private void setFormat(int mode,
int sampleRate,
int channels,
int nframes,
boolean vbr)
mode - sampleRate - channels - nframes - vbr - public void setSerialNumber(int serialNumber)
serialNumber -
public void close()
throws java.io.IOException
close in class AudioFileWriterjava.io.IOException
public void open(java.lang.String filename)
throws java.io.IOException
open in class AudioFileWriterfilename - - file to open.
java.io.IOException
public void writeHeader(java.lang.String comment)
throws java.io.IOException
writeHeader in class AudioFileWritercomment - description to be included in the header.
java.io.IOException
public void writePacket(byte[] data,
int offset,
int len)
throws java.io.IOException
writePacket in class AudioFileWriterdata - - audio data.offset - - the offset from which to start reading the data.len - - the length of data to read.
java.io.IOException
private void flush(boolean eos)
throws java.io.IOException
eos - - end of stream
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||