Be a bit anoying (and a tad more descriptive) about OpenAL volume errors for some time.

This commit is contained in:
ehofman
2004-06-13 11:59:36 +00:00
parent 1c135a9b5b
commit 0e4a894f62

View 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?