wasapisink: Re-align device period if necessary
authorNirbheek Chauhan <nirbheek@centricular.com>
Wed, 7 Feb 2018 21:41:10 +0000 (03:11 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Thu, 8 Feb 2018 08:59:58 +0000 (14:29 +0530)
commitcbe2fc40a473d1587efbb770b76b88a720c22f1f
tree24fa82c217d457fee1e62d4b8cc6f13573e9c6ab
parent7f1d60da5bdb1be80fc1a88904e606ef6897aa14
wasapisink: Re-align device period if necessary

Sometimes the minimum period advertised by a card results in an
unaligned buffer size error during initialization in exclusive mode.
In that case, we can fetch the actual buffer size in frames and
calculate the period from that.

We can't do this pre-emptively because we can't call GetBufferSize
till Initialize has been called at least once.

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