pulseaudio/src
Georg Chini 156b572954 pulsecore: Add alternative time smoother implementation
This patch adds an alternative time smoother implementation based on the theory
found at https://www.freedesktop.org/software/pulseaudio/misc/rate_estimator.odt.

The functions were written to replace the current smoother functions nearly on
a one-to-one basis, though there are a few differences:
- The smoother_2_put() function takes a byte count instead of a sound card
  time as argument. This was changed because in most places a sample count
  was converted to a time before passing it to the smoother.
- The smoother needs to know sample rate and frame size to convert byte
  counts to time.
- A smoother_2_get_delay() function was added to directly retrieve the stream
  delay from the smoother.
- A hack for USB devices was added which works around an issue in the alsa
  latency reports for USB devices.

The smoother delivers much better precision than the current implementation.
For results, see the document referenced above.

The new functions are still unused. The following patches will convert all
callers of the smoother functions so that they can use both smoother
implementations, depending on a configure option.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/55>
2021-11-03 21:13:38 +00:00
..
daemon daemon/cmdline: Invert log-level list to match numerical values 2021-10-20 17:16:21 +02:00
modules loopback: Add resampler delay to latency snapshots 2021-11-03 18:37:31 +00:00
pulse thread-mainloop: Release once_unlocked_data object after callback 2021-10-06 14:18:24 +00:00
pulsecore pulsecore: Add alternative time smoother implementation 2021-11-03 21:13:38 +00:00
tests tests: Add resampler rewind test 2021-11-03 18:37:31 +00:00
utils pactl: add format flag for JSON output 2021-08-11 15:31:05 +00:00
.gitignore tests: Add resampler rewind test 2021-11-03 18:37:31 +00:00
depmod.py update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
meson.build pulsecore: Add alternative time smoother implementation 2021-11-03 21:13:38 +00:00