dsoundaudio: dsound_get_buffer_in should honor *size
commit8d1439b692c5dc8edc4d4a1d334afd7070458029
authorVolker Rümelin <vr_qemu@t-online.de>
Sun, 5 Apr 2020 07:50:17 +0000 (5 09:50 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 6 Apr 2020 11:29:53 +0000 (6 13:29 +0200)
tree17b273228418b880c09ecfbda53b58bc20fb848a
parent174702986c04180e0c05cddbaf6b2547a07310eb
dsoundaudio: dsound_get_buffer_in should honor *size

This patch prevents an underflow of variable samples in function
audio_pcm_hw_run_in(). See commit 599eac4e5a "audio:
audio_generic_get_buffer_in should honor *size". This time the
while loop in audio_pcm_hw_run_in() will terminate nevertheless,
because it seems the recording stream in Windows is always rate
limited.

Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
Message-id: 20200405075017.9901-3-vr_qemu@t-online.de
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
audio/audio.c
audio/dsoundaudio.c