[Openal-devel] last call: ALC_EXT_disconnect
Ryan C. Gordon
icculus at icculus.org
Wed Aug 19 09:13:26 PDT 2009
> The first line of the first question is: "all playing sources will be
> stopped on disconnected". If this is to be interpreted strictly, then
> that may contradict the possibility or usefulness of the following
> question which allows the implementation to switch devices
> transparently where I would expect the playing sources to continue
> playing.
I clarified the transparent switching section to say that that case
isn't treated as a disconnect.
> I also wanted to put this idea out there. What do people think of
> having a callback function you can define (via function pointers) to
> handle device changes? It seems that constantly polling for a device
> change is awkward at best. I know OpenAL doesn't have any event
> callbacks, but maybe looking forward to future revisions, maybe this
> is desirable.
It's not a very GL-like thing to do, which is sort of a guiding
principle of OpenAL, for better or worse.
Then again, GL is building a scene on frame at a time and it's not time
sensitive, so maybe this is worth considering. It's definitely something
that should go into another extension (even if one of the callbacks
becomes disconnect notification and amends ALC_EXT_disconnect).
--ryan.
More information about the Openal-devel
mailing list