I checked it to be 0.. The code I had was this below. the variable volumeSettingAdjust was set to 0.
void Sound::soundPlay( ISoundSource * source, float volume, float playBackSpeed ) { const float furtherAdjust = 0.3f; ISound * sound = soundEngine->play2D( source, false, false, true, false ); if( sound ) { sound->setVolume( volume * volumeSettingAdjust * furtherAdjust ); sound->setPlaybackSpeed( playBackSpeed ); } sounds.push_back( sound ); }
Even when setting the volume to 0 sound is still produced.. The sound seems to only lower the volume of some aspects of the wav file but some parts are still noticeable loud. For some wav files its noticeably worse then others. However if I comment out the sound->setVolume and replace it with source->setDefaultVolume it works as expected
void Sound::soundPlay( ISoundSource * source, float volume, float playBackSpeed ) { const float furtherAdjust = 0.3f; source->setDefaultVolume(volume * volumeSettingAdjust * furtherAdjust ); ISound * sound = soundEngine->play2D( source, false, false, true, false ); if( sound ) { sound->setPlaybackSpeed( playBackSpeed ); } sounds.push_back( sound ); }
works as expected
|