Robert Osfield wrote:
I have been thinking about the potential of an osgAudio library that
abstracts away from the implementation details of OpenAL and keeps the
door open to multiple implementations, and then within this have some
form of registration of the audio implementation, then the audio
implementations would plugin in to this, or like osgViewer just be
built into the osgAudio library. osgViewer and it's handling of
GraphicsWindow implementation might be a reasonable model for this.
An straight audio sink is rather more straight forward than this
though... so perhaps one could just have a slimline
AudioSystemInterface/Factory class a bit like
osg::GraphicsContext::WindowingSystemInterface singleton and then have
this be where you register your scheme for implementing the AudioSink.
Then in the plugins that need an audio sink it can go to this
singleton and grab and implementation. The plugin might also use
osgDB to load a plugin to force the registration of a implementation
of a AudioSystemInterface. Such an approach would be easier to graft
on than writing a full blown osgAudio library.
Thanks, that helps a lot. I'll keep that in mind if I find myself with
more free time anytime soon :-)
--"J"
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org