Doug McCorkle wrote:
> Currently in the OpenAL implementation openalpp/AudioBase.cpp (lines
> 35-133) there is information that is printed about what hardware is
> being used by the OpenAL backend.
> ... This could all be
> controlled through the OSG debug output utilities.
Currently, openalpp doesn't have a dependency on OSG. Well, OK, to be honest,
the CMake system is set up to link openalpp against OSG, but none of the
openalpp source files include any OSG headers or use any OSG objects. If we
change the openalpp code to use the OSG notify system, then we are introducing a
dependency on OSG for arguably no good reason.
My personal preference is for libraries with some kind of global verbosity
control. But I'm not sure how this would work in osgAudio, where some parts of
the code use OSG's notify system, and other parts just write to std::cout or
std::cerr as they see fit.
I'm inclined to introduce a new default parameter to SoundManager::init, a bool
to control displaying init messages to the console. It would default to false,
which would mean the current openalpp behavior of writing init messages to
console would go away. But you could get this back by passing true. Once this is
done, I'd add some kind of equivalent support for FMOD as described in an
earlier post.
--
-Paul Martz Skew Matrix Software
http://www.skew-matrix.com/