pipewire/pipewire-alsa/alsa-plugins
Martin Geier a7d238ed59 alsa: increase precision of delay function
pw->time.delay is delay in number of frames in pw->time.rate domain,
however snd_pcm_pipewire_delay function is suppose to return number of
frames in io->rate domain. Convert pw->time.delay to io->rate domain to
increase precision when the io->rate is not equal to the pw->time.rate

snd_pcm_pipewire_delay should return how many frames are queued in
pipewire, pw_stream_get_time returns numbers of the queued frames before
snd_pcm_pipewire_process is called, however this function inserts (or
removes) some frames from pipewire. Therefore newly inserted (removed)
frames should be added to pw->time.delay to increase precision.

Signed-off-by: Martin Geier <martin.geier@streamunlimited.com>
2021-11-02 15:37:07 +00:00
..
ctl_pipewire.c alsa-plugin: store the right value in last_seq 2021-10-08 09:21:32 +02:00
meson.build meson.build: drop HAVE_CONFIG_H 2021-06-10 09:04:16 +10:00
pcm_pipewire.c alsa: increase precision of delay function 2021-11-02 15:37:07 +00:00