[vorbis] Finding length (time) of encoded birstream

John Lundy jlundy at playnet.com
Mon Mar 11 20:31:44 PST 2002



This is exactly what I ended up doing. I had not wanted to add another DLL
to the application footprint; however, vorbisfile.dll is rather small,
anyway. It did require that I "fix" the header file (as I have had to do
with the other DLL headers) so I can access the DLL via dynamic loading
(LoadLibrary) instead of static linkage (LIB files). This process alone took
longer than generating the code. I hope the next release can have the
headers provide this functionality without the lengthy patch process.

John

----- Original Message -----
From: "David Mitchell" <vorbis at themitchells.org>
To: <vorbis at xiph.org>; "John Lundy" <jlundy at playnet.com>
Sent: Monday, March 11, 2002 9:14 PM
Subject: Re: [vorbis] Finding length (time) of encoded birstream

<p>> Can't you just call ov_time_total() or ov_pcm_total() in vorbisfile to get
> what you want? Or am I missing something?
>
> -David Mitchell
>
> On Sunday 10 March 2002 05:37 pm, John Lundy wrote:
> > I'm adding some final features to my CD Ripper and Encoder before the
full,
> > version 1 release. As part of that release, the program will offer the
> > ability to play (for review purposes) both WAV and OGG files. I have
both
> > the decoder and playback code working but I have one final issue to
> > resolve: finding the play time for the Vorbis bitstream that is being
> > played back. I used the example_encode and example_decode code as the
> > initial basis for my code model (but it has really changes a bunch since
I
> > started the project <grin>). Anyway, can someone inform me how I can get
> > this information from the file using the OGG, VORBIS or VORBISENC DLL
> > interfaces? I'd rather not add any new interfaces to get this
information.
> > TIA.
> >
> > John Lundy
> >
> >
> >
> > --- >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 at xiph.org'
> > containing only the word 'unsubscribe' in the body.  No subject is
needed.
> > Unsubscribe messages sent to the list will be ignored/filtered.
>
> --- >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 at xiph.org'
> containing only the word 'unsubscribe' in the body.  No subject is needed.
> Unsubscribe messages sent to the list will be ignored/filtered.
>
>

<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 at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis mailing list