_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;
+ {
+ _sample->set_volume( 1.0 );
+ SG_LOG(SG_GENERAL, SG_WARN,
+ "WARNING: Volume larger than 1.0 for configuration for '" << _name
+ << "' clipping ...");
+ }
//