[speex-dev] seeking

Conrad Parker conrad at metadecks.org
Mon Mar 1 16:30:51 PST 2004

On Thu, Feb 26, 2004 at 03:20:01AM -0500, Jean-Marc Valin wrote:
> > I need to know if it is possible to seek the Speex stream. I want to have an
> > ability to seek in time, just like Vorbis does. Vorbis has function
> > "ov_time_seek" and I want something like this from Speex. Is this possible?
> > Thanks for any reply.
> It's not really a feature of Speex, but Ogg. So if you have a Speex
> stream in an Ogg container, it's possible to seek. It's a bit harder
> than for Vorbis, since Speex doesn't have the equivalent of libvorbis
> (though eventually, libogg will do it), so you have to do it "by hand"
> using libogg calls.


you can seek easily using liboggz :)


open the file with mode OGGZ_READ|OGGZ_AUTO and it will transparently
parse speex headers and allow seeking to milliseconds with

  oggz_seek_units (oggz, time_in_ms)

--- >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 'speex-dev-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 Speex-dev mailing list