[Bug 14717] resampled sound is horrible

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Nov 27 12:53:14 CST 2010


--- Comment #31 from Krzysztof Nikiel <zzdz2 at yahoo.pl> 2010-11-27 12:53:14 CST ---
(In reply to comment #30)
> Unfortunately, the InterlockedIncrement-based synchronozation still looks
> wrong. Suppose that two threads call the DSOUND_CreateFIR() function
> simultaneously. Then, obviously, only one copy will fill in the values. The
> other copy will return immediately, as if the FIR is already filled. Then the
> thread that called that copy will immediately continue, with the assumption
> that the FIR is ready, while in fact it isn't yet.

Indeed, it may happen that a thread produces some samples using uninitialized
table, some noise.
Looks like it needs a mutex or predefined tables to be thread safe.

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