Browse Source

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.

tags/1.9.8
Devin Anderson 14 years ago
parent
commit
a301171e13
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      windows/winmme/JackWinMMEOutputPort.cpp

+ 2
- 1
windows/winmme/JackWinMMEOutputPort.cpp View File

@@ -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");


Loading…
Cancel
Save