MCPcopy Create free account
hub / github.com/AbyssEngine/AbyssEngineOld / setSoundEffectsVolumeLevel

Method setSoundEffectsVolumeLevel

src/Abyss/AbyssEngine.cpp:401–404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

399float AbyssEngine::getSoundEffectsVolumeLevel() const { return _soundEffectsAudioLevel; }
400
401void AbyssEngine::setSoundEffectsVolumeLevel(const float level) {
402 _soundEffectsAudioLevel = std::clamp(level, 0.0f, 1.0f);
403 _soundEffectsAudioLevelActual = std::pow(_soundEffectsAudioLevel, 2.0f);
404}
405
406void AbyssEngine::addSoundEffect(Common::SoundEffectInterface *soundEffect) { _soundEffects.push_back(soundEffect); }
407

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected