dsound: Precache PerfectPitch(TM) and friends to lighten mixer load.

Maarten Lankhorst m.b.lankhorst at gmail.com
Sun Jul 29 13:26:05 CDT 2007


By doing the resampling/transforming of the data outside the mixer
thread, it will only have to do ideal mixing, which is lighter on the timer.

For this to work properly, I had to replace the critical section a
buffer has by a read/write lock, so mixing from secondary buffer to
intermediary buffer and intermediate buffer to primary can be done at
the same time, which is what happened before the patch too, the rw lock
is to make sure the tmp_buffer isn't freed while mixing.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-dsound-Precache-PerfectPitch-TM-and-friends-to-lig.patch
Type: text/x-patch
Size: 59683 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070729/cf29818a/0005-dsound-Precache-PerfectPitch-TM-and-friends-to-lig-0001.bin


More information about the wine-patches mailing list