public class OpusMSDecoder extends Object
OpusMSDecoder class.
| Modifier and Type | Method and Description |
|---|---|
static OpusMSDecoder |
create(int Fs,
int channels,
int streams,
int coupled_streams,
short[] mapping)
create.
|
int |
decodeMultistream(byte[] data,
int data_offset,
int len,
short[] out_pcm,
int out_pcm_offset,
int frame_size,
int decode_fec)
decodeMultistream.
|
OpusBandwidth |
getBandwidth()
getBandwidth.
|
int |
getFinalRange()
getFinalRange.
|
int |
getGain()
getGain.
|
int |
getLastPacketDuration()
getLastPacketDuration.
|
OpusDecoder |
GetMultistreamDecoderState(int streamId)
GetMultistreamDecoderState.
|
int |
getSampleRate()
getSampleRate.
|
void |
ResetState()
ResetState.
|
void |
setGain(int value)
setGain.
|
public static OpusMSDecoder create(int Fs, int channels, int streams, int coupled_streams, short[] mapping) throws OpusException
create.
Fs - a intchannels - a intstreams - a intcoupled_streams - a intmapping - an array of short objectsOpusMSDecoder objectOpusException - if any.public int decodeMultistream(byte[] data,
int data_offset,
int len,
short[] out_pcm,
int out_pcm_offset,
int frame_size,
int decode_fec)
decodeMultistream.
data - an array of byte objectsdata_offset - a intlen - a intout_pcm - an array of short objectsout_pcm_offset - a intframe_size - a intdecode_fec - a intpublic OpusBandwidth getBandwidth()
getBandwidth.
OpusBandwidth objectpublic int getSampleRate()
getSampleRate.
public int getGain()
getGain.
public void setGain(int value)
setGain.
value - a intpublic int getLastPacketDuration()
getLastPacketDuration.
public int getFinalRange()
getFinalRange.
public void ResetState()
ResetState.
public OpusDecoder GetMultistreamDecoderState(int streamId)
GetMultistreamDecoderState.
streamId - a intOpusDecoder objectCopyright © 2024. All rights reserved.