public static final class MediaCodecInfo.AudioCapabilities extends Object
Modifier and Type | Method and Description |
---|---|
static MediaCodecInfo.AudioCapabilities |
create(MediaFormat info,
MediaCodecInfo.CodecCapabilities parent) |
Range<Integer> |
getBitrateRange()
Returns the range of supported bitrates in bits/second.
|
int |
getMaxInputChannelCount()
Returns the maximum number of input channels supported.
|
Range<Integer>[] |
getSupportedSampleRateRanges()
Returns the array of supported sample rate ranges.
|
int[] |
getSupportedSampleRates()
Returns the array of supported sample rates if the codec
supports only discrete values.
|
void |
init(MediaFormat info,
MediaCodecInfo.CodecCapabilities parent) |
boolean |
isSampleRateSupported(int sampleRate)
Query whether the sample rate is supported by the codec.
|
void |
setDefaultFormat(MediaFormat format) |
boolean |
supportsFormat(MediaFormat format) |
public Range<Integer> getBitrateRange()
public int[] getSupportedSampleRates()
null
. The array is sorted in ascending order.public Range<Integer>[] getSupportedSampleRateRanges()
public int getMaxInputChannelCount()
public static MediaCodecInfo.AudioCapabilities create(MediaFormat info, MediaCodecInfo.CodecCapabilities parent)
public void init(MediaFormat info, MediaCodecInfo.CodecCapabilities parent)
public boolean isSampleRateSupported(int sampleRate)
public void setDefaultFormat(MediaFormat format)
public boolean supportsFormat(MediaFormat format)