Ver código fonte

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

computation in _cmMpMIDISystemReadProc().
master
kevin 11 anos atrás
pai
commit
40a9f35e18
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3
    0
      osx/cmMidiOsx.c

+ 3
- 0
osx/cmMidiOsx.c Ver arquivo

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

Carregando…
Cancelar
Salvar