|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.tritonus.lowlevel.gsm.Encoder
public class Encoder
| Constructor Summary | |
|---|---|
Encoder()
Encoder class constructor. |
|
| Method Summary | |
|---|---|
void |
encode(java.io.InputStream input,
java.lang.String output_file)
Encode the specified InputStream. |
void |
encode(short[] asBuffer,
byte[] abFrame)
Encodes a block of data. |
void |
encode(java.lang.String input_file,
java.lang.String output_file)
Encode the specified file. |
static void |
stripAUHeader(java.io.InputStream in)
Remove the header info from the stream and verifies the file type. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Encoder()
| Method Detail |
|---|
public static void stripAUHeader(java.io.InputStream in)
throws java.lang.Exception
in - Strip the header from a Sun/Next formated sound stream.
java.lang.Exception
public void encode(java.lang.String input_file,
java.lang.String output_file)
throws java.lang.Exception
stripAUHeader method for you.
input_file - The name of the file to encode.output_file - The name of the GSM encoded file.
java.lang.Exception
public void encode(java.io.InputStream input,
java.lang.String output_file)
throws java.io.IOException
input - The stream to encode.output_file - The name of the GSM encoded file.
java.io.IOException
public void encode(short[] asBuffer,
byte[] abFrame)
asBuffer - an 160-element array with the data to encode
int PCM 16 bit format.abFrame - the encoded GSM frame (33 bytes).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||