[vorbis-dev] vorbisfile close and memory callbacks
Brett Paterson
brett at fmod.org
Sun Oct 22 11:11:12 PDT 2000
it might be a good idea to remove close_func from the vorbisfile callbacks,
or do a null check if the user doesnt want vorbis to close the file?
We open the file ourselves, so it seems strange that vorbisfile closes it
without permission :)
currently this is the hack i use to stop vorbis file from closing my file
vf.datasource = NULL; // this stops vorbis from trying to close our file
ov_clear(&vf);
otherwise it will crash trying to close a previously closed and freed handle
(my streamer logic has always opened and closed the file itself, or it may
want to keep the file open!).
Another idea i thought might be nice is memory allocation callbacks? I and
many other projects probably use their own memory manager for debugging
purposes etc, and because ogg/vorbis allocates memory with stdlib it makes
it hard to track memory.. (on consoles this is especially important)
thanks
Brett
--- >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