From a301171e130a66b842d2f1a0dfddc591b1ed0508 Mon Sep 17 00:00:00 2001 From: Devin Anderson Date: Fri, 22 Apr 2011 01:21:44 -0700 Subject: [PATCH] WinMME: Fix a possible bug with outgoing MIDI timing. It might not actually be a bug. Either way, it's a better way to convert from jack_time_t to LONGLONG. --- windows/winmme/JackWinMMEOutputPort.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/windows/winmme/JackWinMMEOutputPort.cpp b/windows/winmme/JackWinMMEOutputPort.cpp index 65daf6df..7f174bec 100644 --- a/windows/winmme/JackWinMMEOutputPort.cpp +++ b/windows/winmme/JackWinMMEOutputPort.cpp @@ -145,7 +145,8 @@ JackWinMMEOutputPort::Execute() LARGE_INTEGER due_time; // 100 ns resolution - due_time.QuadPart = - ((frame_time - current_time) * 10); + due_time.QuadPart = + -((LONG LONG) ((frame_time - current_time) * 10)); if (! SetWaitableTimer(timer, &due_time, 0, NULL, NULL, 0)) { WriteOSError("JackWinMMEOutputPort::Execute", "ChangeTimerQueueTimer");