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

Method setBackgroundMusicVolumeLevel

src/Abyss/AbyssEngine.cpp:394–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392float AbyssEngine::getBackgroundMusicVolumeLevel() const { return _backgroundMusicAudioLevel; }
393
394void AbyssEngine::setBackgroundMusicVolumeLevel(const float level) {
395 _backgroundMusicAudioLevel = std::clamp(level, 0.0f, 1.0f);
396 _backgroundMusicAudioLevelActual = std::pow(_backgroundMusicAudioLevel, 2.0f);
397}
398
399float AbyssEngine::getSoundEffectsVolumeLevel() const { return _soundEffectsAudioLevel; }
400

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected