From: ehofman Date: Sun, 13 Jun 2004 11:59:36 +0000 (+0000) Subject: Be a bit anoying (and a tad more descriptive) about OpenAL volume errors for some... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0e4a894f627c30a3b39cface9f2ee789af95fc9f;p=simgear.git Be a bit anoying (and a tad more descriptive) about OpenAL volume errors for some time. --- diff --git a/simgear/sound/xmlsound.cxx b/simgear/sound/xmlsound.cxx index 58be2356..09e2eb04 100644 --- a/simgear/sound/xmlsound.cxx +++ b/simgear/sound/xmlsound.cxx @@ -408,6 +408,13 @@ SGXmlSound::update (double dt) _sample->set_pitch( pitch_offset + pitch ); _sample->set_volume( volume_offset + volume ); +#if 0 + if ((pitch_offset + pitch) > 2.0) + cout << "WARNING: Pitch higher than 2.0 for configuration for '" << _name << "'"<< endl; +#endif + if ((volume_offset + volume ) > 1.0) + cout << "WARNING: Volume larger than 1.0 for configuration for '" << _name << "'" << endl; + // // Do we need to start playing the sample?