I am just starting to learn this API and in the process I have updated
osgaudio.cpp
to use the new SoundUpdateCB instead of the SoundNode class.
I am happy to trade it for a comment or two.
I tried to keep changes minimal but had to add a dummy osg::Group
to attach the CB to. I have been using the standard v2.0 rc-1, openal
soft & osg 2.8.2 under fedora 8
to compile it.
Cheers and thanks for the good work so far,
Per Nordqvist
Thanks for the feedback.
Yes, we weren't sure that the SoundNode class (legacy from osgAL) was entirely
thread safe, as it updated OpenAL during cull. It did some pretty interesting
tricks to try to ensure this happened only in one of the cull traversals. But,
this type of operation is better performed during update, so the SoundUpdateCB
seemed like the better solution, all things considered.
The other big API change from osgAL was changing how the Listener position is
determined, which now requires some application intervention (in osgAL this was
handled automatically).
--
-Paul Martz Skew Matrix Software
http://www.skew-matrix.com/
What did you think of the changes? Can we commit them?
Doug