diff options
author | Chris Robinson <[email protected]> | 2009-09-15 18:19:00 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-09-15 18:19:00 -0700 |
commit | 6636131d3bb52687229881d4d2343b5c464b5c81 (patch) | |
tree | 6a7b093f0a9edf563c3736a7c506a227f723b518 /Alc/dsound.c | |
parent | eeea9631ce15d1bd239a837331658a2fb951f46f (diff) |
Pass the frame count to aluMixData
Diffstat (limited to 'Alc/dsound.c')
-rw-r--r-- | Alc/dsound.c | 4 |
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 |