Showing the changes to interface/src/scripting/AudioDeviceScriptingInterface.cpp (1 of 8 files). Show all
Unified · Split
| @@ -27,9 +27,9 @@ AudioDeviceScriptingInterface::AudioDeviceScriptingInterface() { · 26 unmodified lines | |||
| 27 | bool AudioDeviceScriptingInterface::setInputDevice(const QString& deviceName) { | 27 | bool AudioDeviceScriptingInterface::setInputDevice(const QString& deviceName) { |
| 28 | bool result; | 28 | bool result; |
| 29 | QMetaObject::invokeMethod(DependencyManager::get<Audio>(), "switchInputToAudioDevice", | 29 | QMetaObject::invokeMethod(DependencyManager::get<Audio>(), "switchInputToAudioDevice", |
| 30 | Qt::BlockingQueuedConnection, | 30 | Qt::BlockingQueuedConnection, |
| 31 | Q_RETURN_ARG(bool, result), | 31 | Q_RETURN_ARG(bool, result), |
| 32 | Q_ARG(const QString&, deviceName)); | 32 | Q_ARG(const QString&, deviceName)); |
| 33 | 33 | ||
| 34 | return result; | 34 | return result; |
| 35 | } | 35 | } |
| @@ -37,9 +37,9 @@ bool AudioDeviceScriptingInterface::setInputDevice(const QString& deviceName) { · 1 unmodified line | |||
| 37 | bool AudioDeviceScriptingInterface::setOutputDevice(const QString& deviceName) { | 37 | bool AudioDeviceScriptingInterface::setOutputDevice(const QString& deviceName) { |
| 38 | bool result; | 38 | bool result; |
| 39 | QMetaObject::invokeMethod(DependencyManager::get<Audio>(), "switchOutputToAudioDevice", | 39 | QMetaObject::invokeMethod(DependencyManager::get<Audio>(), "switchOutputToAudioDevice", |
| 40 | Qt::BlockingQueuedConnection, | 40 | Qt::BlockingQueuedConnection, |
| 41 | Q_RETURN_ARG(bool, result), | 41 | Q_RETURN_ARG(bool, result), |
| 42 | Q_ARG(const QString&, deviceName)); | 42 | Q_ARG(const QString&, deviceName)); |
| 43 | 43 | ||
| 44 | return result; | 44 | return result; |
| 45 | } | 45 | } |