CR for Job #20166 - Extend AudioDeviceScriptingInterface to have muted property and mute event
Showing the changes to interface/src/Application.cpp (1 of 4 files). Show all
Unified · Split
| @@ -1980,6 +1980,9 @@ void Application::init() { · 1979 unmodified lines | ||
| 1980 | 1980 | connect(getAudio(), &Audio::preProcessOriginalInboundAudio, &_audioReflector, |
| 1981 | 1981 | &AudioReflector::preProcessOriginalInboundAudio,Qt::DirectConnection); |
| 1982 | 1982 | |
| 1983 | + connect(getAudio(), &Audio::muteToggled, AudioDeviceScriptingInterface::getInstance(), | |
| 1984 | + &AudioDeviceScriptingInterface::muteToggled, Qt::DirectConnection); | |
| 1985 | + | |
| 1983 | 1986 | // save settings when avatar changes |
| 1984 | 1987 | connect(_myAvatar, &MyAvatar::transformChanged, this, &Application::bumpSettings); |
| 1985 | 1988 | } |