Browse Source

cmMidiFile.c Fixed absolute time calc. bug in cmMidiFileTickToSamples().

master
kevin 12 years ago
parent
commit
befd3deeee
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      cmMidiFile.c

+ 2
- 1
cmMidiFile.c View File

@@ -821,9 +821,10 @@ void cmMidiFileTickToSamples( cmMidiFileH_t h, double srate, bool absFl )
821 821
     cmMidiTrackMsg_t* mp    = p->msgV[mi];
822 822
     unsigned          delta = floor((mp->dtick*srate)/1000000.0);
823 823
 
824
+    absSmp    += delta;    
825
+
824 826
     mp->dtick  = absFl ? absSmp : delta;
825 827
 
826
-    absSmp    += delta;    
827 828
   }
828 829
 }
829 830
 

Loading…
Cancel
Save