- Generated 2020-11-11T13:32:52.276+01:00
+ Generated 2020-11-21T10:29:19.215+01:00
diff --git a/sdrbase/resources/webapi/doc/swagger/include/AudioOutput.yaml b/sdrbase/resources/webapi/doc/swagger/include/AudioOutput.yaml
new file mode 100644
index 000000000..15f2f46db
--- /dev/null
+++ b/sdrbase/resources/webapi/doc/swagger/include/AudioOutput.yaml
@@ -0,0 +1,24 @@
+AudioOutputSettings:
+ description: AudioOutput
+ properties:
+ deviceName:
+ description: The name of the audio device
+ type: string
+ volume:
+ type: number
+ format: float
+ iqMapping:
+ type: integer
+ description: >
+ Audio channel to IQ mapping
+ * 0 - I=L, Q=R
+ * 1 - I=R, Q=L
+ useReverseAPI:
+ description: Synchronize with reverse API (1 for yes, 0 for no)
+ type: integer
+ reverseAPIAddress:
+ type: string
+ reverseAPIPort:
+ type: integer
+ reverseAPIDeviceIndex:
+ type: integer
diff --git a/sdrbase/resources/webapi/doc/swagger/include/DeviceSettings.yaml b/sdrbase/resources/webapi/doc/swagger/include/DeviceSettings.yaml
index 4a75ffc72..35f0af122 100644
--- a/sdrbase/resources/webapi/doc/swagger/include/DeviceSettings.yaml
+++ b/sdrbase/resources/webapi/doc/swagger/include/DeviceSettings.yaml
@@ -20,6 +20,8 @@ DeviceSettings:
$ref: "/doc/swagger/include/AirspyHF.yaml#/AirspyHFSettings"
audioInputSettings:
$ref: "/doc/swagger/include/AudioInput.yaml#/AudioInputSettings"
+ audioOutputSettings:
+ $ref: "/doc/swagger/include/AudioOutput.yaml#/AudioOutputSettings"
bladeRF1InputSettings:
$ref: "/doc/swagger/include/BladeRF1.yaml#/BladeRF1InputSettings"
bladeRF2InputSettings:
diff --git a/sdrbase/webapi/webapirequestmapper.cpp b/sdrbase/webapi/webapirequestmapper.cpp
index 9b8a85513..2556a07e4 100644
--- a/sdrbase/webapi/webapirequestmapper.cpp
+++ b/sdrbase/webapi/webapirequestmapper.cpp
@@ -4096,6 +4096,11 @@ bool WebAPIRequestMapper::getDeviceSettings(
deviceSettings->setAudioInputSettings(new SWGSDRangel::SWGAudioInputSettings());
deviceSettings->getAudioInputSettings()->fromJsonObject(settingsJsonObject);
}
+ else if (deviceSettingsKey == "audioOutputSettings")
+ {
+ deviceSettings->setAudioOutputSettings(new SWGSDRangel::SWGAudioOutputSettings());
+ deviceSettings->getAudioOutputSettings()->fromJsonObject(settingsJsonObject);
+ }
else if (deviceSettingsKey == "bladeRF1InputSettings")
{
deviceSettings->setBladeRf1InputSettings(new SWGSDRangel::SWGBladeRF1InputSettings());
diff --git a/sdrbase/webapi/webapiutils.cpp b/sdrbase/webapi/webapiutils.cpp
index e4265d02a..86abdc6c8 100644
--- a/sdrbase/webapi/webapiutils.cpp
+++ b/sdrbase/webapi/webapiutils.cpp
@@ -68,7 +68,8 @@ const QMap