Displaying 1 result from an estimated 1 matches for "opusfilecallback".
Did you mean:
opusfilecallbacks
2017 Jan 28
2
How to use op_test_callbacks ?
...infos, all seems ok.
But for reading, using this gives 0 outframes:
outframes := op_read_float(Data.HandleOP, at Buffer[0], Wantframesm, nil);
I suspect that some callback must be defined.
In opusfile library there is:
OP_WARN_UNUSED_RESULT OggOpusFile *op_test_callbacks(void *_source,
const OpusFileCallbacks *_cb,const unsigned char *_initial_data,
size_t _initial_bytes,int *_error) OP_ARG_NONNULL(2);
Maybe it is what I need in place of op_test_memory().
But I do not understand what is _source and initial_data.
Also how to use OpusFileCallbacks.
Some example will be highly appreciated how to use...