1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 06:04:39 -04:00

Audio UDP/RTP codec and decimation: REST API updates

This commit is contained in:
f4exb
2019-02-15 12:10:01 +01:00
parent fda0690e81
commit 6ed8e97576
256 changed files with 383 additions and 263 deletions
+10
View File
@@ -2457,6 +2457,16 @@ bool WebAPIRequestMapper::validateAudioOutputDevice(
audioOutputDevice.setUdpChannelMode(jsonObject["udpChannelMode"].toInt());
audioOutputDeviceKeys.append("udpChannelMode");
}
if (jsonObject.contains("udpChannelCodec"))
{
audioOutputDevice.setUdpChannelCodec(jsonObject["udpChannelCodec"].toInt());
audioOutputDeviceKeys.append("udpChannelCodec");
}
if (jsonObject.contains("udpDecimationFactor"))
{
audioOutputDevice.setUdpDecimationFactor(jsonObject["udpDecimationFactor"].toInt());
audioOutputDeviceKeys.append("udpDecimationFactor");
}
if (jsonObject.contains("udpAddress"))
{
audioOutputDevice.setUdpAddress(new QString(jsonObject["udpAddress"].toString()));