[vorbis-dev] Vorbisfile: non-seekable

Olaf van der Spek Olaf at XCC.TMFWeb.NL
Mon Nov 12 00:45:14 PST 2001



Hi,

I use the following code:
  if (ov_open(NULL, &vf, const_cast<char*>(reinterpret_cast<const
char*>(get_data())), get_size()) < 0)
   error = 0x100;
  else
  {
   vorbis_info* vi = ov_info(&vf, -1);
   Cvirtual_file f;
   const int cb_samples = ov_pcm_total(&vf, -1);
   const bool seekable = ov_seekable(&vf);

So all data is already in memory and passed to ov_open.
This stream is not seekable. Why not?
And shouldn't it be seekable?

Olaf van der Spek
Almere, Holland
Olaf at XCC.TMFWeb.NL
http://xccu.sourceforge.net/
http://xcc.tiberian.com/

--- >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-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 Vorbis-dev mailing list