...sigh...<br><br>Now I&#39;m getting annoyed.<br><br>For the last time, look at the answer to the question on SO.com that you&#39;ve linked: <a href="http://stackoverflow.com/questions/13437422/libvorbis-audio-decode-from-memory-in-c">http://stackoverflow.com/questions/13437422/libvorbis-audio-decode-from-memory-in-c</a><br>
<br>...the function AR_seekOgg. See how he calculates the position according to `type`?<br><br><div class="gmail_quote">On 4 December 2012 03:43, fy <span dir="ltr">&lt;<a href="mailto:fy0748@gmail.com" target="_blank">fy0748@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
    
  


<div bgcolor="#FFFFFF" text="#000000">在 Tue, 04 Dec 2012 02:44:21 +0800,Christoph Nelles &lt;<a href="mailto:evilazrael@evilazrael.de" target="_blank">evilazrael@evilazrael.de</a>&gt; 写道:<div class="im"><br><br><blockquote style="margin:0 0 0.80ex;border-left:#0000ff 2px solid;padding-left:1ex">

    Hi, <br>
    <br>
    write your own small wrapper function with the third parameter which
    translates relative positions to absolute positions. &nbsp; It is not so
    difficult, just a little bit of math (and physfs_tell). The worst is
    probably SEEK_END. If Physfs_uint64 is a problem for you, try a weak
    &amp; dynamic typed language.<br>
    </blockquote><div><br></div></div><div>Well, I made a mistake...</div><div><br></div><div>  2882     /**<br>  2883      * \brief Move i/o position to a given byte offset from start.<br>  2884      *<br>  2885      * This method moves the i/o position, so the next read/write will<br>
  2886      *  be of the byte at (offset) offset. Seeks past the end of file should<br>  2887      *  be treated as an error condition.<br>  2888      *<br>  2889      *   \param io The i/o instance to seek.<br>  2890      *   \param offset The new byte offset for the i/o position.<br>
  2891      *  \return non-zero on success, zero on error.<br>  2892      */<br>  2893     int (*seek)(struct PHYSFS_Io *io, PHYSFS_uint64 offset);</div><div><br></div><div>The PHYSFS_seek&nbsp;moves i/o position to a given byte offset from START,</div>
<div>not CURRENET position.</div><div><br></div><br><div><div>-- </div><div>使用Opera的电子邮件客户端:<a href="http://www.opera.com/mail/" target="_blank">http://www.opera.com/mail/</a></div></div></div><br>_______________________________________________<br>

physfs mailing list<br>
<a href="mailto:physfs@icculus.org">physfs@icculus.org</a><br>
<a href="http://icculus.org/mailman/listinfo/physfs" target="_blank">http://icculus.org/mailman/listinfo/physfs</a><br>
<br></blockquote></div><br>