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 | AudioDeviceScriptingInterface::AudioDeviceScriptingInterface() { | 21 | AudioDeviceScriptingInterface::AudioDeviceScriptingInterface() { |
| 22 | connect(DependencyManager::get<Audio>(), &Audio::muteToggled, | 22 | connect(DependencyManager::get<Audio>().data(), &Audio::muteToggled, |
| 23 | this, &AudioDeviceScriptingInterface::muteToggled); | 23 | this, &AudioDeviceScriptingInterface::muteToggled); |
| 24 | } | 24 | } |
| 25 | 25 | ||
| 26 | bool AudioDeviceScriptingInterface::setInputDevice(const QString& deviceName) { | 26 | bool AudioDeviceScriptingInterface::setInputDevice(const QString& deviceName) { |
| 27 | bool result; | 27 | bool result; |
| 28 | QMetaObject::invokeMethod(DependencyManager::get<Audio>(), "switchInputToAudioDevice", | 28 | QMetaObject::invokeMethod(DependencyManager::get<Audio>().data(), "switchInputToAudioDevice", |
| 29 | Qt::BlockingQueuedConnection, | 29 | Qt::BlockingQueuedConnection, |
| 30 | Q_RETURN_ARG(bool, result), | 30 | Q_RETURN_ARG(bool, result), |
| 31 | Q_ARG(const QString&, deviceName)); | 31 | Q_ARG(const QString&, deviceName)); |
| @@ -35,7 +35,7 @@ bool AudioDeviceScriptingInterface::setInputDevice(const QString& deviceName) { · 3 unmodified lines | |||
| 35 | 35 | ||
| 36 | bool AudioDeviceScriptingInterface::setOutputDevice(const QString& deviceName) { | 36 | bool AudioDeviceScriptingInterface::setOutputDevice(const QString& deviceName) { |
| 37 | bool result; | 37 | bool result; |
| 38 | QMetaObject::invokeMethod(DependencyManager::get<Audio>(), "switchOutputToAudioDevice", | 38 | QMetaObject::invokeMethod(DependencyManager::get<Audio>().data(), "switchOutputToAudioDevice", |
| 39 | Qt::BlockingQueuedConnection, | 39 | Qt::BlockingQueuedConnection, |
| 40 | Q_RETURN_ARG(bool, result), | 40 | Q_RETURN_ARG(bool, result), |
| 41 | Q_ARG(const QString&, deviceName)); | 41 | Q_ARG(const QString&, deviceName)); |