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

Method setMasterVolumeLevel

src/Abyss/AbyssEngine.cpp:380–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378float AbyssEngine::getMasterVolumeLevel() const { return _masterAudioLevel; }
379
380void AbyssEngine::setMasterVolumeLevel(const float level) {
381 _masterAudioLevel = std::clamp(level, 0.0f, 1.0f);
382 _masterAudioLevelActual = std::pow(_masterAudioLevel, 2.0f);
383}
384
385float AbyssEngine::getVideoVolumeLevel() const { return _videoAudioLevel; }
386

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected