mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-08-14 15:33:34 -04:00
Copy audio to UDP/RTP: Opus implementation (3)
This commit is contained in:
@@ -353,7 +353,7 @@ void AudioDialogX::check()
|
||||
else if (m_outputDeviceInfo.udpChannelCodec == AudioOutput::UDPCodecOpus)
|
||||
{
|
||||
int effectiveSampleRate = m_outputDeviceInfo.sampleRate/decimationFactor;
|
||||
if ((effectiveSampleRate != 48000) || (effectiveSampleRate != 24000) || (effectiveSampleRate != 16000) || (effectiveSampleRate != 12000)) {
|
||||
if ((effectiveSampleRate != 48000) && (effectiveSampleRate != 24000) && (effectiveSampleRate != 16000) && (effectiveSampleRate != 12000)) {
|
||||
QMessageBox::information(this, tr("Message"), tr("Opus takes only 48, 24, 16 or 12 kHz sample rates"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user