[opus] How to use op_test_callbacks ?

Fred van Stappen fiens at hotmail.com
Sat Jan 28 17:33:54 UTC 2017



De : opus <opus-bounces at xiph.org> de la part de Timothy B. Terriberry <tterribe at xiph.org>
Envoyé : samedi 28 janvier 2017 17:41
À : opus at xiph.org
Objet : Re: [opus] How to use op_test_callbacks ?

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);


_______________________________________________

Hello Timothy.

Many thanks for answer.

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

Yes, same result, outframes = 0. ;-(

The buffer was re-filled before op_read_float() so I am thinking that no callback is needed.

Using op_test_file works like charm with op_read_float().

I do not understand why result is always = 0 with op_open_memory().

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xiph.org/pipermail/opus/attachments/20170128/b8d50055/attachment-0001.html>


More information about the opus mailing list