public class AudioStreamEncoder extends 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(AudioInputStream sin,
int maxRead,
FLACEncoder flac,
boolean useThreads)
Encodes the given AudioInputStream, using the given FLACEncoder.
|
static int |
getDataFormatSupport(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(AudioInputStream sin, int maxRead, FLACEncoder flac, boolean useThreads) throws IOException, IllegalArgumentException
sin - IOExceptionIllegalArgumentException - thrown if input sample size is not supportedpublic static int getDataFormatSupport(AudioFormat format)
format - AudioFormat to test for support.Copyright © 2017. All rights reserved.