From 40a9f35e18221badf6cae1c49cd254de5750aa50 Mon Sep 17 00:00:00 2001 From: kevin Date: Tue, 10 Dec 2013 16:33:43 -0500 Subject: [PATCH] cmMidiOsx.c : Added comment on a possible problem with the time stamp computation in _cmMpMIDISystemReadProc(). --- osx/cmMidiOsx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/osx/cmMidiOsx.c b/osx/cmMidiOsx.c index 54b0733..6d193a0 100644 --- a/osx/cmMidiOsx.c +++ b/osx/cmMidiOsx.c @@ -513,6 +513,9 @@ void _cmMpMIDISystemReadProc( const MIDIPacketList *pktListPtr, void* readProcRe // 1000 times that for microSeconds: double microSecs = 1000.0f * nanoSeconds; + // BUG BUG BUG: How can multiplying the nanoseconds produce microseconds? + // Shouldn't the nano to micro conversion be a divide? + double deltaMicroSecs = microSecs - pp->prevMicroSecs; pp->prevMicroSecs = microSecs;