gstreamer/sys
Nirbheek Chauhan 6d27c0ac08 wasapisrc: Fix glitching and clock skew issues
We were miscalculating the device period, i.e. the number of frames
we'll get from WASAPI in each IAudioClient::GetBuffer call, due to
a calculation mistake (truncate instead of round).

For example, on my machine when the aux input is set to 44.1KHz, the
reported device period is 101587, which comes out to 447.998 frames
per ::GetBuffer call. In reality we will, of course, get 448 frames
per call, but we were truncating, so we expected 447 and were
discarding one frame every time. This led to glitching, and skew over
time.

Interestingly, I can only see this with 44.1Khz. 48Khz/96Khz are fine,
because the device period is a more 'even' number.

Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/806
2019-11-28 08:59:41 +00:00
..
androidmedia androidmedia: Add new effects and scene modes to Camera parameters 2019-11-19 07:54:16 +01:00
applemedia documentation: fixed a heap o' typos 2019-11-05 09:11:25 -05:00
bluez Remove autotools build system 2019-10-14 13:54:27 +01:00
d3d11 d3d11window: Fix subclass procedure recursion 2019-11-14 01:26:09 +00:00
d3dvideosink d3dvideosink: use sink dimensions when calculating overlay scaling 2019-11-18 03:32:57 +00:00
decklink documentation: fixed a heap o' typos 2019-11-05 09:11:25 -05:00
directsound documentation: fixed a heap o' typos 2019-11-05 09:11:25 -05:00
dshowdecwrapper documentation: fixed a heap o' typos 2019-11-05 09:11:25 -05:00
dshowsrcwrapper documentation: fixed a heap o' typos 2019-11-05 09:11:25 -05:00
dshowvideosink documentation: fixed a heap o' typos 2019-11-05 09:11:25 -05:00
dvb Don't pass default GLib marshallers for signals 2019-11-06 14:27:46 +00:00
fbdev Remove autotools build system 2019-10-14 13:54:27 +01:00
ipcpipeline Don't pass default GLib marshallers for signals 2019-11-06 14:27:46 +00:00
kms kmssink: Do not drain if imported buffer are from KMS 2019-11-11 22:20:28 +00:00
msdk msdk: Fix mixed declarations warning 2019-11-27 12:25:40 +09:00
nvcodec nvenc: Fix crash when nvenc was reused then freed without encoding 2019-11-22 03:02:57 +00:00
opensles Remove autotools build system 2019-10-14 13:54:27 +01:00
shm Don't pass default GLib marshallers for signals 2019-11-06 14:27:46 +00:00
tinyalsa Remove autotools build system 2019-10-14 13:54:27 +01:00
uvch264 documentation: fixed a heap o' typos 2019-11-05 09:11:25 -05:00
wasapi wasapisrc: Fix glitching and clock skew issues 2019-11-28 08:59:41 +00:00
winks documentation: fixed a heap o' typos 2019-11-05 09:11:25 -05:00
winscreencap documentation: fixed a heap o' typos 2019-11-05 09:11:25 -05:00
meson.build nvdec,nvenc: Port to dynamic library loading 2019-07-08 10:37:46 +00:00