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 | Method and Description |
|---|---|
| public default void | callback(long
a pointer to the memory used for the function's return value.
ret, long If the function is declared as returning Otherwise, the callback must fill the object to which this points, following the same special promotion behavior as
a vector of pointers to memory holding the arguments to the function args)Implements org. |
| public default FFICIF | getCallInterface()
Implements org. |
| public int | Returns: a non-negative value on success, or a negative value on error.Any error codes should be the same as those returned by
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)Called to decode an Opus packet. |
| CIF | back to summary |
|---|---|
| public static final FFICIF CIF | |
| callback | back to summary |
|---|---|
| public default void callback(long ret, long args) Implements org. Doc from org. The Java method that will be called from native code when the native callback function is invoked.
| |
| getCallInterface | back to summary |
|---|---|
| public default FFICIF getCallInterface() Implements org. Doc from org. Returns the libffi Call Interface for this callback function. [INTERNAL API] | |
| invoke | back to summary |
|---|---|
| public int invoke(long _ctx, long _decoder, long _pcm, long _op, int _nsamples, int _nchannels, int _format, int _li) Called to decode an Opus packet. This should invoke the functional equivalent of
| |