git » sdk » commit dae17ef

Bitrate should be 24k not 24

author Stephen Paul Weber
2025-05-12 13:32:20 UTC
committer Stephen Paul Weber
2025-05-12 13:36:17 UTC
parent c6743ea3e485e83b478764e6f13458d5898e17e7

Bitrate should be 24k not 24

snikket/jingle/PeerConnection.cpp.hx +1 -1

diff --git a/snikket/jingle/PeerConnection.cpp.hx b/snikket/jingle/PeerConnection.cpp.hx
index cc036bd..03b7c4f 100644
--- a/snikket/jingle/PeerConnection.cpp.hx
+++ b/snikket/jingle/PeerConnection.cpp.hx
@@ -569,7 +569,7 @@ class MediaStreamTrack {
 			} else if (format.format == "opus") {
 				if (untyped __cpp__("!{0}", opusEncoder)) {
 					opusEncoder = OpusEncoder.create(clockRate, channels, untyped __cpp__("OPUS_APPLICATION_VOIP"), null); // assume only one opus clockRate+channels for this track
-					untyped __cpp__("opus_encoder_ctl({0}, OPUS_SET_BITRATE(24))", opusEncoder);
+					untyped __cpp__("opus_encoder_ctl({0}, OPUS_SET_BITRATE(24000))", opusEncoder);
 					untyped __cpp__("opus_encoder_ctl({0}, OPUS_SET_PACKET_LOSS_PERC(5))", opusEncoder);
 					untyped __cpp__("opus_encoder_ctl({0}, OPUS_SET_INBAND_FEC(1))", opusEncoder);
 				}