Package org.xiph.speex
Class RawWriter
java.lang.Object
org.xiph.speex.AudioFileWriter
org.xiph.speex.RawWriter
Raw Audio File Writer.
- Version:
- $Revision: 1.2 $
- Author:
- Marc Gimpel, Wimba S.A. (mgimpel@horizonwimba.com)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes the output file.void
Open the output file.void
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.Methods inherited from class org.xiph.speex.AudioFileWriter
buildOggPageHeader, buildSpeexComment, buildSpeexHeader, writeInt, writeInt, writeInt, writeLong, writeLong, writeOggPageHeader, writeShort, writeShort, writeShort, writeSpeexComment, writeSpeexHeader, writeString
-
Field Details
-
out
-
-
Constructor Details
-
RawWriter
public RawWriter()
-
-
Method Details
-
close
Closes the output file.- Specified by:
close
in classAudioFileWriter
- Throws:
IOException
- if there was an exception closing the Audio Writer.
-
open
Open the output file.- Specified by:
open
in classAudioFileWriter
- Parameters:
file
- - file to open.- Throws:
IOException
- if there was an exception opening the Audio Writer.
-
open
Open the output file.- Specified by:
open
in classAudioFileWriter
- Parameters:
filename
- - file to open.- Throws:
IOException
- if there was an exception opening the Audio Writer.
-
writeHeader
Writes the header pages that start the Ogg Speex file. Prepares file for data to be written.- Specified by:
writeHeader
in classAudioFileWriter
- Parameters:
comment
- description to be included in the header.- Throws:
IOException
-
writePacket
Writes a packet of audio.- Specified by:
writePacket
in classAudioFileWriter
- Parameters:
data
- audio dataoffset
- the offset from which to start reading the data.len
- the length of data to read.- Throws:
IOException
-