wasapi: Add a property for trying the AudioClient3 API
authorNirbheek Chauhan <nirbheek@centricular.com>
Mon, 26 Feb 2018 10:25:19 +0000 (15:55 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Mon, 26 Feb 2018 10:53:11 +0000 (16:23 +0530)
commit995059dc87eca5c42b960b475979613ba6d9b4a2
tree79baf199ac1c67e860a489a8975b1f6b3b36ab01
parentf7d0ce2477f58896551fe52c826da0184febf3ff
wasapi: Add a property for trying the AudioClient3 API

The AudioClient3 API is only available on Windows 10, and we will
automatically detect when it is available and use it.

However, using it for capturing audio with low latency and without
glitches seems to require setting the realtime priority of the entire
pipeline to "critical", which we cannot do from inside the element.

Hence, we can only enable that by default for wasapisink since
apps should be able to safely set the low-latency property to TRUE if
they need low-latency capture or playback.
sys/wasapi/gstwasapisink.c
sys/wasapi/gstwasapisink.h
sys/wasapi/gstwasapisrc.c
sys/wasapi/gstwasapisrc.h