audio/dsound: fix invalid parameters error
commitfb35c2cec58985f0b8d2733f1b91927542eeb3fd
authorKővágó, Zoltán <dirty.ice.hu@gmail.com>
Sun, 2 Feb 2020 23:02:23 +0000 (3 00:02 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 6 Feb 2020 13:31:20 +0000 (6 14:31 +0100)
treefe30d5f05ca1fde9d8d2c9a6f3bf1de3f4db0599
parent599eac4e5a41e828645594097daee39373acc3c0
audio/dsound: fix invalid parameters error

Windows (unlike wine) bails out when IDirectSoundBuffer8::Lock is called
with zero length.  Also, hw->pos_emul handling was incorrect when
calling this function for the first time.

Signed-off-by: Kővágó, Zoltán <DirtY.iCE.hu@gmail.com>
Reported-by: KJ Liew <liewkj@yahoo.com>
Tested-by: Howard Spoelstra <hsp.cat7@gmail.com>
Message-id: fe9744216d9d421a2dbb09bcf5fa0dbd18f77ac5.1580684275.git.DirtY.iCE.hu@gmail.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
audio/audio.c
audio/dsound_template.h
audio/dsoundaudio.c