[PATCH 2/5] winmm: Preserve fractions in microseconds to compensate rounding errors.

Akihiro Sagawa sagawa.aki at gmail.com
Tue Jun 26 08:10:47 CDT 2018


Otherwise, a song is played faster than expected in some cases.

For instance, we assume that 40 pan control change (CC#10) messages are
expressed in 12.5ms each,
 * Prior art omits fractions, i.e. 12ms + 12ms + ... = 480ms.
 * Proposal technique saves fractions, i.e. 12ms + 13ms + ... = 500ms.
Ideal duration is 500ms. So, the proposed method is better than prior one.

Signed-off-by: Akihiro Sagawa <sagawa.aki at gmail.com>
---
 dlls/winmm/winmm.c | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-winmm-Preserve-fractions-in-microseconds-to-compensa.patch
Type: text/x-patch
Size: 2496 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20180626/a495866b/attachment-0001.bin>


More information about the wine-devel mailing list