[vorbis] Audio Section - Game Programming Gems 3

Michael Smith msmith at labyrinth.net.au
Fri Nov 9 00:21:09 PST 2001



>Ok, this might be completely off-track, and I am probably completely wrong,
>but I have a strange feeling in the back of my head.... Is that memory usage
>dependent on the size of the stream? Have you tried with very small streams
>(a few seconds) ? How exactly did you measure the memory usage? By checking
>difference before and after opening a decoder, or by calculating it
>manually?

No, he's right - libvorbis memory usage is pretty bad (compared to mp3,
at least). For common cases it can be greatly reduced (with some substantial
work, though), though worst-case will probably still be like this.

>Why don't you create wrapper stubs for stdlib functions? I mean, if you
>don't want to use the stdlib functions and you don't link with them, I guess
>you must have your implementations, right? So wouldn't it be easy to just
>make wrappers that are named exactly as stdlib functions and that call your
>functions, then liknk with your wrapper library instead of the stdlib?
>It is same effect as doing vectorization, it requires approximately the same
>effort on your side, yet it doesn't require a single line of code changed in
>vorbis.
>What do you think?

Yes. This is a much, much better way of doing things.

Michael

--- >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