Sfoglia il codice sorgente

cmMidiOsx.c : Added comment on a possible problem with the time stamp

computation in _cmMpMIDISystemReadProc().
master
kevin 10 anni fa
parent
commit
40a9f35e18
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3
    0
      osx/cmMidiOsx.c

+ 3
- 0
osx/cmMidiOsx.c Vedi File

@@ -513,6 +513,9 @@ void _cmMpMIDISystemReadProc( const MIDIPacketList *pktListPtr, void* readProcRe
513 513
     // 1000 times that for microSeconds:
514 514
     double microSecs = 1000.0f * nanoSeconds;
515 515
 
516
+    // BUG BUG BUG: How can multiplying the nanoseconds produce microseconds?
517
+    // Shouldn't the nano to micro conversion be a divide?
518
+
516 519
     double deltaMicroSecs = microSecs - pp->prevMicroSecs;
517 520
 
518 521
     pp->prevMicroSecs = microSecs;

Loading…
Annulla
Salva