public class AudioStreamEncoder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
SUPPORTED |
static int |
UNSUPPORTED_CHANNELCOUNT |
static int |
UNSUPPORTED_ENCODINGTYPE |
static int |
UNSUPPORTED_SAMPLERATE |
static int |
UNSUPPORTED_SAMPLESIZE |
Constructor and Description |
---|
AudioStreamEncoder() |
Modifier and Type | Method and Description |
---|---|
static int |
encodeAudioInputStream(javax.sound.sampled.AudioInputStream sin,
int maxRead,
FLACEncoder flac,
boolean useThreads)
Encodes the given AudioInputStream, using the given FLACEncoder.
|
static int |
getDataFormatSupport(javax.sound.sampled.AudioFormat format)
Checks whether the given AudioFormat can be properly encoded by this
FLAC library.
|
public static final int SUPPORTED
public static final int UNSUPPORTED_CHANNELCOUNT
public static final int UNSUPPORTED_SAMPLESIZE
public static final int UNSUPPORTED_SAMPLERATE
public static final int UNSUPPORTED_ENCODINGTYPE
public static int encodeAudioInputStream(javax.sound.sampled.AudioInputStream sin, int maxRead, FLACEncoder flac, boolean useThreads) throws java.io.IOException, java.lang.IllegalArgumentException
sin
- java.io.IOException
java.lang.IllegalArgumentException
- thrown if input sample size is not supportedpublic static int getDataFormatSupport(javax.sound.sampled.AudioFormat format)
format
- AudioFormat to test for support.