Re: a question about ov_read()

[email protected] Mon, 5 Apr 2010 16:21:53 -0400
Newsgroups gmane.comp.multimedia.ogg.vorbis.general
Message-ID <[email protected]>
On Wed, Feb 3, 2010 at 11:41 AM, Dmitry Goncharov <[email protected]> wrote:
> Hi,
> Is the following assumption correct?
>
>
> OggVorbis_File f;
> if (ov_read(&f, ...) == 0)
> {
>     assert(ov_pcm_tell(&f) == ov_pcm_total(&f, -1));
> }

Reading straight through the file, that should be true.  I don't know
if it will be true in the case of raw seeking nearly to the end of a
file and trying to read past the beginning of the last page.  I think
that would possibly be the only case where it would not be true,
because it would not be possible to recapture the stream at that
point.

Monty