Browse Source

cmMidiFilePlay.c : _cmMfpCb() now generates a zeroed timestamp.

master
kevin 11 years ago
parent
commit
45361cd535
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      cmMidiFilePlay.c

+ 3
- 3
cmMidiFilePlay.c View File

7
 #include "cmMem.h"
7
 #include "cmMem.h"
8
 #include "cmMallocDebug.h"
8
 #include "cmMallocDebug.h"
9
 #include "cmFile.h"
9
 #include "cmFile.h"
10
+#include "cmTime.h"
10
 #include "cmMidi.h"
11
 #include "cmMidi.h"
11
 #include "cmMidiPort.h"
12
 #include "cmMidiPort.h"
12
 #include "cmMidiFile.h"
13
 #include "cmMidiFile.h"
410
     cmMidiMsg      msg;
411
     cmMidiMsg      msg;
411
     _cmMfpTest2CbData_t* d = (_cmMfpTest2CbData_t*)userCbPtr;
412
     _cmMfpTest2CbData_t* d = (_cmMfpTest2CbData_t*)userCbPtr;
412
 
413
 
413
-    msg.deltaUs = dmicros;
414
+    msg.timeStamp.tv_sec = 0;
415
+    msg.timeStamp.tv_nsec = 0;
414
     msg.status  = msgPtr->status + msgPtr->u.chMsgPtr->ch;
416
     msg.status  = msgPtr->status + msgPtr->u.chMsgPtr->ch;
415
     msg.d0      = msgPtr->u.chMsgPtr->d0;
417
     msg.d0      = msgPtr->u.chMsgPtr->d0;
416
     msg.d1      = msgPtr->u.chMsgPtr->d1;
418
     msg.d1      = msgPtr->u.chMsgPtr->d1;
535
       cmErrMsg(&err,kProcObjFailMfptRC,"Audio file write failed.");
537
       cmErrMsg(&err,kProcObjFailMfptRC,"Audio file write failed.");
536
       goto errLabel;
538
       goto errLabel;
537
     }
539
     }
538
-
539
   }
540
   }
540
   
541
   
541
-
542
  errLabel:
542
  errLabel:
543
   if( cmMidiSynthFree(&msp) != cmOkRC )
543
   if( cmMidiSynthFree(&msp) != cmOkRC )
544
     cmErrMsg(&err,kProcObjFailMfptRC,"MIDI synth. free failed.");
544
     cmErrMsg(&err,kProcObjFailMfptRC,"MIDI synth. free failed.");

Loading…
Cancel
Save