<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p></p>
<div>Hello.</div>
<div><br>
</div>
<div>I have succeffully open a memory buffer from a url-opus-file with (from Pascal fpc):</div>
<div><br>
</div>
<div>HandleOP := op_test_memory(BufferURL[0],PipeBufferSize, Err);</div>
<div>op_test_open(StreamIn[x].Data.HandleOP);</div>
<div><br>
</div>
<div>I can retrieve the tags infos, all seems ok.</div>
<div><br>
</div>
<div>But for reading, using this gives 0 outframes:</div>
<div><br>
</div>
<div>outframes := op_read_float(Data.HandleOP,@Buffer[0], Wantframesm, nil);</div>
<div><br>
</div>
<div>I suspect that some callback must be defined.</div>
<div><br>
</div>
<div>In opusfile library there is:</div>
<div><br>
</div>
<div>OP_WARN_UNUSED_RESULT OggOpusFile *op_test_callbacks(void *_source,</div>
<div> const OpusFileCallbacks *_cb,const unsigned char *_initial_data,</div>
<div> size_t _initial_bytes,int *_error) OP_ARG_NONNULL(2);</div>
<div><br>
</div>
<div>Maybe it is what I need in place of op_test_memory().</div>
<div><br>
</div>
<div>But I do not understand what is _source and initial_data.</div>
<div><br>
</div>
<div>Also how to use OpusFileCallbacks.</div>
<div><br>
</div>
<div>Some example will be highly appreciated how to use <span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">op_test_callbacks()
 with the memory buffer<span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;"> (or how to use
<span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">
op_read_float() with <span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">
op_test_memory())</span> </span>.</span></span> (In C or Pascal).</div>
<div><br>
</div>
<div>Many thanks.</div>
<div> </div>
<div>Fre;D  </div>
<div><br>
</div>
<div>           </div>
<br>
<p></p>
<div id="Signature">
<div>
<div></div>
</div>
</div>
</div>
</body>
</html>