aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/dsound.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/dsound.c')
-rw-r--r--Alc/dsound.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/dsound.c b/Alc/dsound.c
index dcad35ef..16a8dbbe 100644
--- a/Alc/dsound.c
+++ b/Alc/dsound.c
@@ -132,8 +132,8 @@ static ALuint DSoundProc(ALvoid *ptr)
{
// If we have an active context, mix data directly into output buffer otherwise fill with silence
SuspendContext(NULL);
- aluMixData(pDevice->Context, WritePtr1, WriteCnt1, pDevice->Format);
- aluMixData(pDevice->Context, WritePtr2, WriteCnt2, pDevice->Format);
+ aluMixData(pDevice->Context, WritePtr1, WriteCnt1/DSBCaps.nBlockAlign, pDevice->Format);
+ aluMixData(pDevice->Context, WritePtr2, WriteCnt2/DSBCaps.nBlockAlign, pDevice->Format);
ProcessContext(NULL);
// Unlock output buffer only when successfully locked