mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
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:
parent
ec825086f1
commit
c37f9f9cf0
4 changed files with 24 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue