|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectjavaFlacEncoder.FLAC_FileEncoder
public class FLAC_FileEncoder
FLAC_FileEncoder is a class to encode an input wav File to an output Flac file. It allows the EncodingConfiguration to be set only once, prior to encoding the entire File.
| Nested Class Summary | |
|---|---|
static class |
FLAC_FileEncoder.Status
Status enum for encode result |
| Constructor Summary | |
|---|---|
FLAC_FileEncoder()
Constructor creates a FLAC_FileEncoder object with default StreamConfiguration configuration and default EncodingConfiguration. |
|
| Method Summary | |
|---|---|
FLAC_FileEncoder.Status |
encode(java.io.File inputFile,
java.io.File outputFile)
Encode the given input wav file to an output file. |
int |
getLastTotalSamplesEncoded()
Get the total number of samples encoded in last encode. |
void |
setEncodingConfig(EncodingConfiguration config)
Set the EncodingConfiguration to use for encoding. |
void |
setStreamConfig(StreamConfiguration config)
Set the stream configuration for this encoder to use. |
void |
useThreads(boolean val)
Specify whether to use multiple threads or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FLAC_FileEncoder()
| Method Detail |
|---|
public void useThreads(boolean val)
val - true to use threads, false otherwise.public void setStreamConfig(StreamConfiguration config)
config - StreamConfiguration to use for encoding.public void setEncodingConfig(EncodingConfiguration config)
config - EncodingConfiguration to use.
public FLAC_FileEncoder.Status encode(java.io.File inputFile,
java.io.File outputFile)
inputFile - Input wav file to encode.outputFile - Output file to write FLAC stream to. If file exists, it
will be overwritten without prompting.
public int getLastTotalSamplesEncoded()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||