Mike
2003-Mar-02 15:28 UTC
[vorbis] ov_pcm_total() returns always 0 after ov_open_callbacks()...
Hi Folks, i implemented the required callback funktions to open an ogg file from memory. Now ov_pcm_total() returns always 0, strange thing about is that ov_pcm_total does not call any of the callback funktions. I also like to mention that ov_info (which uses the read and seek callback funktions) delivers correct values. Thats why i doubt that there's an error in (the rather simple) callback funktions... Is it valid to call ov_pcm_total() on an ogg file that was opened with ov_open_callbacks()? If it is not: How can i calculate the size of the audiobuffer? I have realy no idea what i've done wrong, so please let me know if you have any ideas. Thank's in advance, Mike <p>... by the way, how can i find out with which version of the librarys i am working with? <p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Michael Smith
2003-Mar-02 16:07 UTC
[vorbis] ov_pcm_total() returns always 0 after ov_open_callbacks()...
Mike <just.me@aon.at> said:> Hi Folks, > > i implemented the required callback funktions to open an ogg file from > memory. > Now ov_pcm_total() returns always 0, strange thing about is that > ov_pcm_total does not call any of the callback funktions. > I also like to mention that ov_info (which uses the read and seek callback > funktions) delivers correct values. Thats why i doubt that there's an error > in (the rather simple) callback funktions...Do your callbacks support seeking? If not, that's why - obviously, without seeking, it can't figure out how long the stream is. If you DO support seeking, perhaps you've got some other bug in your callback(s)? Can you show us the tell and seek callbacks you've implemented? Mike --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.