Fix audio crashes in VR on Linux

This commit is contained in:
Karol Suprynowicz 2025-04-18 16:06:57 +02:00
parent 7d2b7e5e65
commit 2b073d36d1
2 changed files with 1 additions and 1 deletions

View file

@ -2170,5 +2170,6 @@ void Application::setupSignalsAndOperators() {
connect(this, &Application::activeDisplayPluginChanged,
scriptingAudioSharedPointer.data(), &scripting::Audio::onContextChanged);
}
dynamic_cast<scripting::Audio*>(audioScriptingInterface)->onContextChanged();
}
}

View file

@ -57,7 +57,6 @@ Audio::Audio() : _devices(_contextIsHMD) {
setNoiseReductionThreshold(setNoiseReductionThresholdSetting.get());
enableWarnWhenMuted(enableWarnWhenMutedSetting.get());
enableAcousticEchoCancellation(enableAcousticEchoCancellationSetting.get());
onContextChanged();
}
QUuid Audio::startRecording() {