]> git.mxchange.org Git - simgear.git/commitdiff
Be a bit anoying (and a tad more descriptive) about OpenAL volume errors for some...
authorehofman <ehofman>
Sun, 13 Jun 2004 11:59:36 +0000 (11:59 +0000)
committerehofman <ehofman>
Sun, 13 Jun 2004 11:59:36 +0000 (11:59 +0000)
simgear/sound/xmlsound.cxx

index 58be2356a971cb905cb21ef27a1cb36992502833..09e2eb0410c5644e55109dc547c674bc3a380726 100644 (file)
@@ -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?