Changeset 5417:9152cdd6a02c in roaraudio for roard


Ignore:
Timestamp:
02/20/12 20:05:50 (8 years ago)
Author:
phi
Branch:
default
Message:

Fixed bug in MIDI clock (Closes: #193) (pr2)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/midi.c

    r5416 r5417  
    813813 } 
    814814 
    815  while ( g_pos >= g_midi_clock.nt ) { 
     815 // the strange expr at the end is to avoid warp around bugs. 
     816 while ( g_pos >= g_midi_clock.nt && !(g_pos > (uint32_t)4294900000LU && g_midi_clock.nt < (uint32_t)1000LU) ) { 
    816817#ifdef DEBUG 
    817818  diff = g_pos - g_midi_clock.nt; 
Note: See TracChangeset for help on using the changeset viewer.