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:
parent
86bc8be8d0
commit
e42257c374
@ -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")) {
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user