[Openal-devel] Ownership and lifetime issues
Jason Daly
jdaly at ist.ucf.edu
Wed Mar 1 17:04:17 PST 2006
Garin Hiebert wrote:
> I don't think we should allow this. If it's not in the spec, we can
> add it.
>
I would tend to agree that it makes sense for the higher-level object to
own the lower-level object (devices own buffers and contexts, contexts
own sources, etc), and for the lower-level objects to be deleted when
the higher-level objects are deleted. It makes no sense, and it's of no
use for sources to be around after their context has been destroyed, for
example. I'd suggest we update the spec to explicitly define the
ownership hierarchy, and state that when a parent object is destroyed,
then all associated child objects get destroyed.
--
--"J"
"I'm a castaway stranded in a desolate land,
I can see the footprints in the virtual sand."
--Neil Peart
More information about the Openal-devel
mailing list