Quellcode durchsuchen

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

computation in _cmMpMIDISystemReadProc().
master
kevin vor 10 Jahren
Ursprung
Commit
40a9f35e18
1 geänderte Dateien mit 3 neuen und 0 gelöschten Zeilen
  1. 3
    0
      osx/cmMidiOsx.c

+ 3
- 0
osx/cmMidiOsx.c Datei anzeigen

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

Laden…
Abbrechen
Speichern