module-rtp: use sess.latency.msec also for sender

Use the sess.latency.msec also for the sender and use it to control the
NODE_LATENCY. Make it a float to be in line with the other time values.
Set is to a default of ptime, which was what it used to be.

This makes it possible to set the ptime to a smaller value than the
sess.latency.msec so that we send out multiple packets per quantum.
This will result in some bursty output for now but with a timer that can
be improved later.

Update the docs a little, mention the new rtp.ptime and rtp.frametime.
This commit is contained in:
Wim Taymans 2024-01-25 15:42:16 +01:00
parent ec825086f1
commit c37f9f9cf0
4 changed files with 24 additions and 12 deletions

View file

@ -16,12 +16,12 @@ struct rtp_stream;
#define DEFAULT_CHANNELS 2
#define DEFAULT_POSITION "[ FL FR ]"
#define ERROR_MSEC 2
#define DEFAULT_SESS_LATENCY 100
#define ERROR_MSEC 2.0f
#define DEFAULT_SESS_LATENCY 100.0f
#define DEFAULT_MTU 1280
#define DEFAULT_MIN_PTIME 2
#define DEFAULT_MAX_PTIME 20
#define DEFAULT_MIN_PTIME 2.0f
#define DEFAULT_MAX_PTIME 20.0f
struct rtp_stream_events {
#define RTP_VERSION_STREAM_EVENTS 0