loopback: Improve latency estimation in snapshots
authorGeorg Chini <georg@chini.tk>
Sun, 5 Jun 2016 19:05:05 +0000 (21:05 +0200)
committerTanu Kaskinen <tanuk@iki.fi>
Wed, 13 Jul 2016 22:11:36 +0000 (01:11 +0300)
commit2d7a5cda430cd7c350ffe457f572006c32953fe5
tree07d591549456c7b10d056eab6df6c5aeae06bb8e
parent86e54c8c138b47701a79a8e524425c5e255b721b
loopback: Improve latency estimation in snapshots

The delay and render memblockq are using the source and sink sample specs,
so using pa_bytes_to_usec() will produce better estimates of the delays than
using pa_resmpler_result(). Because the delays are considered to be part of
the sink or source latency, they are added to them. source_output_buffer
becomes obsolete.
src/modules/module-loopback.c