OpusFile#op_set_decode_callback method.
int (*invoke) (
void *_ctx,
OpusMSDecoder *_decoder,
void *_pcm,
ogg_packet const *_op,
int _nsamples,
int _nchannels,
int _format,
int _li
)
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| protected | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public static OPDecodeCBFunc | Returns: the newOPDecodeCBFuncCreates a |
| public static OPDecodeCBFunc | create(OPDecodeCBFuncI instance)
Creates a |
| public static OPDecodeCBFunc |
| OPDecodeCBFunc | back to summary |
|---|---|
| protected OPDecodeCBFunc() | |
| OPDecodeCBFunc | back to summary |
|---|---|
| pack-priv OPDecodeCBFunc(long functionPointer) | |
| create | back to summary |
|---|---|
| public static OPDecodeCBFunc create(long functionPointer) Creates a
| |
| create | back to summary |
|---|---|
| public static OPDecodeCBFunc create(OPDecodeCBFuncI instance) Creates a | |
| createSafe | back to summary |
|---|---|
| public static OPDecodeCBFunc createSafe(long functionPointer) Like
| |
| Modifier and Type | Field and Description |
|---|---|
| private final OPDecodeCBFuncI |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | invoke(long
the application-provided callback context _ctx, long the decoder to use to decode the packet _decoder, long the buffer to decode into.
_pcm, long This will always have enough room for the packet to decode. This will always have its granule position set to a valid value. _op, int the number of samples expected from the packet _nsamples, int the number of channels expected from the packet _nchannels, int the desired sample output format. This is either _format, int DEC_FORMAT_SHORT or DEC_FORMAT_FLOAT.the index of the link from which this packet was decoded _li)Implements org. |
| delegate | back to summary |
|---|---|
| private final OPDecodeCBFuncI delegate | |
| Container | back to summary |
|---|---|
| pack-priv Container(long functionPointer, OPDecodeCBFuncI delegate) | |
| invoke | back to summary |
|---|---|
| public int invoke(long _ctx, long _decoder, long _pcm, long _op, int _nsamples, int _nchannels, int _format, int _li) Implements org. Doc from org. Called to decode an Opus packet. This should invoke the functional equivalent of
| |