Fix latency compensation for audio data in portaudio backend
authorTim Mayberry <mojofunk@gmail.com>
Mon, 30 Nov 2015 09:21:58 +0000 (19:21 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Wed, 2 Dec 2015 00:24:08 +0000 (10:24 +1000)
commite9be313c11cb0eafd7fcd2800748ae80be95787f
treebe378682147dec50527e1c342d3af83861d9f097
parentb4fb1d610b3f4de49c30439de3b5628b8dbf875f
Fix latency compensation for audio data in portaudio backend

For drivers that correctly report latency values(ASIO) this should result a
much closer alignment of audio in a loopback test. Measurement and
adjustment may still be needed, especially for non-ASIO drivers.

Testing with the RME HDSP Multiface and Yamaha AG06 using ASIO drivers results
in maximum offset of a couple of samples.
libs/backends/portaudio/portaudio_backend.cc