MCPcopy Create free account
hub / github.com/OpenVR-Advanced-Settings/OpenVR-AdvancedSettings / setSoundVolume

Method setSoundVolume

src/overlaycontroller.cpp:1561–1573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1559}
1560
1561void OverlayController::setSoundVolume( double value, bool notify )
1562{
1563 m_activationSoundEffect.setVolume( value );
1564 m_focusChangedSoundEffect.setVolume( value );
1565 // leaving alarm sound alone for now as chaperone warning setting effects it
1566 // m_alarm01SoundEffect.setVolume( value);
1567 settings::setSetting( settings::DoubleSetting::APPLICATION_appVolume,
1568 value );
1569 if ( notify )
1570 {
1571 emit soundVolumeChanged( value );
1572 }
1573}
1574
1575double OverlayController::soundVolume() const
1576{

Callers

nothing calls this directly

Calls 1

setSettingFunction · 0.85

Tested by

no test coverage detected