Explorar el Código

cmTimeLine.h/c:Added the 'bar' and 'sectionStr' field to cmTlMarker_t.

master
kpl hace 11 años
padre
commit
de009f9cd8
Se han modificado 2 ficheros con 4 adiciones y 4 borrados
  1. 1
    1
      app/cmTimeLine.c
  2. 3
    3
      app/cmTimeLine.h

+ 1
- 1
app/cmTimeLine.c Ver fichero

@@ -800,7 +800,7 @@ cmTlRC_t _cmTlAllocMarkerRecd( _cmTl_t* p, const cmChar_t* nameStr, const cmChar
800 800
   strcpy(tp,textStr);
801 801
   
802 802
   // copy the section label string into memory just past the markers text string
803
-  cmChar_t* sp = strlen(tp) + 1;
803
+  cmChar_t* sp = tp + strlen(tp) + 1;
804 804
   strcpy(sp,sectStr);
805 805
 
806 806
   mp->text       = tp;

+ 3
- 3
app/cmTimeLine.h Ver fichero

@@ -96,8 +96,8 @@ extern "C" {
96 96
   {
97 97
     cmTlObj_t        obj;
98 98
     const cmChar_t*  text;
99
-    unsigned         bar;
100
-    const cmChar_t*  sectionStr; 
99
+    unsigned         bar;            // measure (bar) in which this marker starts
100
+    const cmChar_t*  sectionStr;     // the section in which this marker starts
101 101
   } cmTlMarker_t;
102 102
 
103 103
   extern cmTlH_t cmTimeLineNullHandle;
@@ -137,7 +137,7 @@ extern "C" {
137 137
 
138 138
   cmTlObj_t*       cmTlIdToObjPtr( cmTlH_t h, unsigned uid );
139 139
 
140
-  // Cast a genereic cmTlObj_t pointer to a specificy type.
140
+  // Cast a genereic cmTlObj_t pointer to a specific type.
141 141
   cmTlMidiFile_t*  cmTimeLineMidiFileObjPtr(  cmTlH_t h, cmTlObj_t* op );
142 142
   cmTlAudioFile_t* cmTimeLineAudioFileObjPtr( cmTlH_t h, cmTlObj_t* op );
143 143
   cmTlMidiEvt_t*   cmTimeLineMidiEvtObjPtr(   cmTlH_t h, cmTlObj_t* op );

Loading…
Cancelar
Guardar