wasapi: Increase thread priority to reduce glitches
authorNirbheek Chauhan <nirbheek@centricular.com>
Tue, 6 Feb 2018 18:15:02 +0000 (23:45 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Thu, 8 Feb 2018 06:34:20 +0000 (12:04 +0530)
commit62b6224e37e180498990ba7d79a09bf87889e520
treebb80eb7180b92ac8fe4826371a03dea9d4242cb6
parent6ecbb7556a2f86976ca30442f4b4088999c403ad
wasapi: Increase thread priority to reduce glitches

This is particularly important when running in exclusive mode because
any delays will immediately cause glitching.

The MinGW version in Cerbero is too old, so we can only enable this when
building with MSVC or when people build GStreamer for MSYS2 or other
MinGW-based distributions.

To force-enable this code when building with MinGW, build with
CFLAGS="-DGST_FORCE_WIN_AVRT -lavrt".

https://bugzilla.gnome.org/show_bug.cgi?id=793289
sys/wasapi/gstwasapisink.c
sys/wasapi/gstwasapisink.h
sys/wasapi/gstwasapisrc.c
sys/wasapi/gstwasapisrc.h