kopia lustrzana https://github.com/f4exb/sdrangel
RTP audio: fixed codec setting when usinf REST API
rodzic
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();
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue