1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-17 13:51:47 -05:00

RTP audio: fixed codec setting when usinf REST API

This commit is contained in:
f4exb 2020-05-23 15:10:23 +02:00
parent 86bc8be8d0
commit e42257c374
2 changed files with 7 additions and 1 deletions

View File

@ -523,7 +523,7 @@ int WebAPIAdapterGUI::instanceAudioOutputPatch(
if (audioOutputKeys.contains("udpChannelCodec")) {
outputDeviceInfo.udpChannelCodec = static_cast<AudioOutput::UDPChannelCodec>(response.getUdpChannelCodec());
}
if (audioOutputKeys.contains("udpDecimatiobFactor")) {
if (audioOutputKeys.contains("udpDecimationFactor")) {
outputDeviceInfo.udpDecimationFactor = response.getUdpDecimationFactor();
}
if (audioOutputKeys.contains("udpAddress")) {

View File

@ -515,6 +515,12 @@ int WebAPIAdapterSrv::instanceAudioOutputPatch(
if (audioOutputKeys.contains("udpChannelMode")) {
outputDeviceInfo.udpChannelMode = static_cast<AudioOutput::UDPChannelMode>(response.getUdpChannelMode() % 4);
}
if (audioOutputKeys.contains("udpChannelCodec")) {
outputDeviceInfo.udpChannelCodec = static_cast<AudioOutput::UDPChannelCodec>(response.getUdpChannelCodec());
}
if (audioOutputKeys.contains("udpDecimationFactor")) {
outputDeviceInfo.udpDecimationFactor = response.getUdpDecimationFactor();
}
if (audioOutputKeys.contains("udpAddress")) {
outputDeviceInfo.udpAddress = *response.getUdpAddress();
}