Showing the changes to interface/src/scripting/AudioDeviceScriptingInterface.cpp (1 of 13 files). Show all
Unified · Split
| @@ -19,13 +19,13 @@ AudioDeviceScriptingInterface* AudioDeviceScriptingInterface::getInstance() { · 18 unmodified lines | ||
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | AudioDeviceScriptingInterface::AudioDeviceScriptingInterface() { |
| 22 | − connect(DependencyManager::get<Audio>(), &Audio::muteToggled, | |
| 22 | + connect(DependencyManager::get<Audio>().data(), &Audio::muteToggled, | |
| 23 | 23 | this, &AudioDeviceScriptingInterface::muteToggled); |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | bool AudioDeviceScriptingInterface::setInputDevice(const QString& deviceName) { |
| 27 | 27 | bool result; |
| 28 | − QMetaObject::invokeMethod(DependencyManager::get<Audio>(), "switchInputToAudioDevice", | |
| 28 | + QMetaObject::invokeMethod(DependencyManager::get<Audio>().data(), "switchInputToAudioDevice", | |
| 29 | 29 | Qt::BlockingQueuedConnection, |
| 30 | 30 | Q_RETURN_ARG(bool, result), |
| 31 | 31 | Q_ARG(const QString&, deviceName)); |
| @@ -35,7 +35,7 @@ bool AudioDeviceScriptingInterface::setInputDevice(const QString& deviceName) { · 3 unmodified lines | ||
| 35 | 35 | |
| 36 | 36 | bool AudioDeviceScriptingInterface::setOutputDevice(const QString& deviceName) { |
| 37 | 37 | bool result; |
| 38 | − QMetaObject::invokeMethod(DependencyManager::get<Audio>(), "switchOutputToAudioDevice", | |
| 38 | + QMetaObject::invokeMethod(DependencyManager::get<Audio>().data(), "switchOutputToAudioDevice", | |
| 39 | 39 | Qt::BlockingQueuedConnection, |
| 40 | 40 | Q_RETURN_ARG(bool, result), |
| 41 | 41 | Q_ARG(const QString&, deviceName)); |