Sweden-Number/dlls/mf
Giovanni Mascellani adffa11609 mf/sar: Allow requesting more than a sample per period.
The IAudioClient implementation from both Windows and winepulse.drv
never sets the event more than once per period, which is usually
around 10 ms long. Some codecs produce audio samples shorter than
10 ms, so it is critical that the SAR is able to process more than
a sample per period.

This is not currently the case: a new sample is requested only in
audio_renderer_render, which is executed (at most) once per period.
This results in the SAR not being able to keep up with the audio
client, and eventually underrunning.

With this patch the SAR keeps a count of how many frames are
currently queued, and a new sample is immediately requested if
the internal queue has less than a buffer worth of frames.

This patch fixes audio stuttering problems in the logo videos
of Borderlands 3, Deep Rock Galactic and Mutant Year Zero.

Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-06 17:49:21 +02:00
..
tests mf/evr: Add slowest/fastest rate support methods. 2021-04-26 12:20:47 +02:00
Makefile.in mf: Move presentation clock implementation to a separate file. 2021-06-15 20:42:25 +02:00
clock.c mf: Use CRT allocation functions. 2021-06-17 20:01:37 +02:00
copier.c mf: Use CRT allocation functions. 2021-06-17 20:01:37 +02:00
evr.c mf: Use CRT allocation functions. 2021-06-17 20:01:37 +02:00
main.c mf: Use CRT allocation functions. 2021-06-17 20:01:37 +02:00
mf.idl
mf.rc
mf.rgs
mf.spec mf: Add MFRequireProtectedEnvironment(). 2021-04-05 15:07:01 +02:00
mf_private.h mf: Use CRT allocation functions. 2021-06-17 20:01:37 +02:00
samplegrabber.c mf: Use CRT allocation functions. 2021-06-17 20:01:37 +02:00
sar.c mf/sar: Allow requesting more than a sample per period. 2021-07-06 17:49:21 +02:00
session.c mf/session: Fix typo in a trace message. 2021-06-23 20:44:58 +02:00
topology.c mf: Use CRT allocation functions. 2021-06-17 20:01:37 +02:00