[opus] How to use op_test_callbacks ?

Timothy B. Terriberry tterribe at xiph.org
Sat Jan 28 16:41:58 UTC 2017


Fred van Stappen wrote:
> I have succeffully open a memory buffer from a url-opus-file with (from
> Pascal fpc):
>
> HandleOP := op_test_memory(BufferURL[0],PipeBufferSize, Err);
> op_test_open(StreamIn[x].Data.HandleOP);
>
> I can retrieve the tags infos, all seems ok.
>
> But for reading, using this gives 0 outframes:
>
> outframes := op_read_float(Data.HandleOP, at Buffer[0], Wantframesm, nil);

Have you tried using op_open_memory() instead of op_test_memory()?


More information about the opus mailing list