wasapi: Correctly set ringbuffer segsize/segtotal
authorNirbheek Chauhan <nirbheek@centricular.com>
Tue, 30 Jan 2018 22:21:47 +0000 (03:51 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Wed, 31 Jan 2018 09:28:21 +0000 (14:58 +0530)
commit538ccb60935cb93a7b711dde61f0cc40a854384b
tree369e68d3112d42ccfe29ab6021db46c1419582ec
parentec6a10ed0641cc18f9d1068f18c8882445c70dc0
wasapi: Correctly set ringbuffer segsize/segtotal

This will set the actual-latency-time and actual-buffer-time of the sink
and source.

We completely ignore the latency-time/buffer-time values set
on the element because WASAPI is happiest when it is reading/writing at
the default period. Improving this will likely require the use of the
IAudioClient3 interfaces which are not available in MinGW yet.

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