module-rtp: Add RTP jitter buffer

This new data structure is useful for reordering incoming packets if they
arrive out-of-order. Many audio codecs require frames and/or packets to be
processed in sequence order due to inter-frame dependencies, so reordering
is critical for such encoded data. It also detects lost packets and reports
those in sequence with received packets (crucial for proper PLC), and
detects and drops late and duplicate packets.
This commit is contained in:
Carlos Rafael Giani 2026-06-19 17:38:18 +02:00
parent f17b9b3ce6
commit 31bb82e116
5 changed files with 2646 additions and 1 deletions

View file

@ -124,6 +124,17 @@ test('test-spa',
link_with: pwtest_lib)
)
test('test-module-rtp-common-lib',
executable('test-module-rtp-common-lib',
'modules/module-rtp/test-jitter-buffer.c',
include_directories : [
pwtest_inc,
include_directories('../src/modules'),
],
dependencies: [ spa_dep, pipewire_module_rtp_common_dep ],
link_with: [pwtest_lib])
)
openal_info = find_program('openal-info', required: false)
if openal_info.found()
cdata.set_quoted('OPENAL_INFO_PATH', openal_info.full_path())