From ca10cb2d376cc25988099ee1f406ee1b6d4f0228 Mon Sep 17 00:00:00 2001 From: ehofman Date: Fri, 16 Jul 2004 21:00:46 +0000 Subject: [PATCH] Weak excuse, but it's getting late. Do clipping right this time. --- simgear/sound/xmlsound.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/simgear/sound/xmlsound.cxx b/simgear/sound/xmlsound.cxx index 83cb5d86..4e866b85 100644 --- a/simgear/sound/xmlsound.cxx +++ b/simgear/sound/xmlsound.cxx @@ -406,15 +406,14 @@ SGXmlSound::update (double dt) // Change sample state // _sample->set_pitch( pitch_offset + pitch ); - _sample->set_volume( volume_offset + volume ); - if ((volume_offset + volume ) > 1.0) { _sample->set_volume( 1.0 ); SG_LOG(SG_GENERAL, SG_WARN, - "WARNING: Volume larger than 1.0 for configuration for '" << _name - << "' clipping ..."); - } + "Volume larger than 1.0 in configuration for '" << _name + << "', clipping."); + } else + _sample->set_volume( volume_offset + volume ); // -- 2.39.5