1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-08-14 15:33:34 -04:00

Copy audio to UDP/RTP: Opus implementation (2)

This commit is contained in:
f4exb
2019-02-18 18:29:37 +01:00
parent 44649fe486
commit 4c85516741
6 changed files with 164 additions and 19 deletions
+2 -2
View File
@@ -113,8 +113,8 @@ void RTPSink::setPayloadInformation(PayloadType payloadType, int sampleRate)
case PayloadOpus:
m_sampleBytes = 1;
m_rtpSession.SetDefaultPayloadType(101);
m_packetSamples = 160; // Fixed 20ms @ 64 kbits/s packet samples
timestampinc = 160; // 1 channel
m_packetSamples = 960; // Fixed 20ms @ 48 kHz as per https://tools.ietf.org/html/rfc7587
timestampinc = 960; // and per single channel
break;
case PayloadL16Mono:
default: