Hi,
the enclosed patch would do the thing (but maybe SG_DEBUG would be
better, it's really only a debug message, the user need not to be warned
about this).
Please commit.
Maik
Maik Justus schrieb am 28.05.2007 21:49:
Hi,
these messages are no real error messages, just warnings, but I think
Volume larger than 1.0 in configuration for '***', clipping.
should be at a warning-level, which is not displayed by default, because
it is not a real error (it is clipped and does not harm).
Maik
? sound.diff
Index: xmlsound.cxx
===================================================================
RCS file: /var/cvs/SimGear-0.3/source/simgear/sound/xmlsound.cxx,v
retrieving revision 1.19
diff -u -p -r1.19 xmlsound.cxx
--- xmlsound.cxx 30 Jul 2006 21:02:36 -0000 1.19
+++ xmlsound.cxx 28 May 2007 21:36:25 -0000
@@ -428,7 +428,7 @@ SGXmlSound::update (double dt)
if ((volume_offset + volume ) > 1.0)
{
_sample->set_volume( 1.0 );
- SG_LOG(SG_GENERAL, SG_WARN,
+ SG_LOG(SG_GENERAL, SG_INFO,
"Volume larger than 1.0 in configuration for '" << _name
<< "', clipping.");
} else
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel