Weak excuse, but it's getting late. Do clipping right this time.
This commit is contained in:
parent
c9854153f8
commit
ca10cb2d37
@ -406,15 +406,14 @@ SGXmlSound::update (double dt)
|
|||||||
// Change sample state
|
// Change sample state
|
||||||
//
|
//
|
||||||
_sample->set_pitch( pitch_offset + pitch );
|
_sample->set_pitch( pitch_offset + pitch );
|
||||||
_sample->set_volume( volume_offset + volume );
|
|
||||||
|
|
||||||
if ((volume_offset + volume ) > 1.0)
|
if ((volume_offset + volume ) > 1.0)
|
||||||
{
|
{
|
||||||
_sample->set_volume( 1.0 );
|
_sample->set_volume( 1.0 );
|
||||||
SG_LOG(SG_GENERAL, SG_WARN,
|
SG_LOG(SG_GENERAL, SG_WARN,
|
||||||
"WARNING: Volume larger than 1.0 for configuration for '" << _name
|
"Volume larger than 1.0 in configuration for '" << _name
|
||||||
<< "' clipping ...");
|
<< "', clipping.");
|
||||||
}
|
} else
|
||||||
|
_sample->set_volume( volume_offset + volume );
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user