Fix playing anouncements and tones with libmobile

This is a fixup of the new audio processing. Without this patch you will
hear only noisy tones.
This commit is contained in:
Andreas Eversberg
2024-04-05 22:24:12 +02:00
parent 6e2fd793ac
commit e1a7791561

View File

@@ -664,7 +664,8 @@ void call_clock(void)
#endif
/* encode and send via RTP */
process->codec->encoder((uint8_t *)spl, 160 * 2, &payload, &payload_len, process);
osmo_cc_rtp_send(process->codec, (uint8_t *)spl, 160 * 2, 0, 1, 160);
osmo_cc_rtp_send(process->codec, payload, payload_len, 0, 1, 160);
free(payload);
/* don't destroy process here in case of an error */
}
process = process->next;