[vorbis-dev] Reading OGG embedded in a pack file
Ken Rogoway
Ken at Rogoway.com
Mon May 3 21:58:23 PDT 2004
Michael,
I respect your knowledge and apologize if I am trying to do something that
is poor application design. Having coded for over 20 years I would like
to think that I should know better, but I am a bit stumped as to how I can
have 100+ different OGG files inside a large package file, and then when
needed go and grab a single OGG file from the package to decode it for
the SDL_mixer which expects a properly decoded wave buffer. If you have
some thoughts on how best to approach this I would greatly appreciate your
sharing them with me.
I guess my biggest problem is that I am trying to take two 3rd party
libraries
and make them work with a pack file scheme. It sounds like I am being an
idiot in my approach. Please explain a better way to do this.
Sincerely,
- Ken Rogoway
> Okay. It seems like this could have been solved by having a parm for non-
> seekable streams that specified the size of the stream. Regardless, I
> understand
> what you are saying and realize the limitations vs. what I am trying to
do.
It's very rare to have a non-seekable stream where you know the size of the
stream in advance - and it's almost completely useless. Such a parameter
would just encourage poor application design.
In your case, the stream IS seekable - it's just that you're lying to
libvorbisfile and telling it that it isn't seekable, to simplify your
implementation.
This _seems_ useful to you because of limitations in some other part of your
program.
<p>> I want to load the entire steam so I can pass off the decoded data to a
> function
> that plays wave data.
I suspected so. This is a flaw in your system - you shouldn't have to pass
the
entire stream all at once. You should seriously consider a different
approach
where you can decode incrementally and pass smaller buffers to the playback
part of your program. This isn't usually hard to do.
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-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.
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.672 / Virus Database: 434 - Release Date: 4/28/2004
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.672 / Virus Database: 434 - Release Date: 4/28/2004
--- >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