[Bug 12349] DSOUND_MixInBuffer Assertion `dsb->buf_mixpos + len <= dsb-> tmp_buffer_len' failed

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Apr 4 06:00:43 CDT 2008


http://bugs.winehq.org/show_bug.cgi?id=12349





--- Comment #4 from Maarten Lankhorst <m.b.lankhorst at gmail.com>  2008-04-04 06:00:43 ---
I would rather change the stop condition, because it is more intuitive.

for (i = 0; i < len-1; i += 2)
and for (i = 0; i < len-2; i += 4)

Mixing a single byte doesn't make sense if your shortest unit of data is 2
bytes long so I put len-2 instead of len-3. Nonetheless I have various checks
that make sure samples are aligned with the amount of channels.

Nice catch. Can you submit the fixed version to the wine-patches mailing list?


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list