Sfoglia il codice sorgente

cmDspPgm.c:_cmDspSysPgm_Preset() improved variable names.

master
kevin 11 anni fa
parent
commit
88856255d2
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4
    4
      dsp/cmDspPgm.c

+ 4
- 4
dsp/cmDspPgm.c Vedi File

@@ -2177,14 +2177,14 @@ cmDspRC_t _cmDspSysPgm_Preset( cmDspSysH_t h, void** userPtrPtr )
2177 2177
   double          sgHz      = 500;
2178 2178
   double          sgGain    = 0.02;
2179 2179
   unsigned        grpSymId  = cmDspSysPresetRegisterGroup(h,"test");
2180
-  const cmChar_t* preLbl    = NULL;
2180
+  const cmChar_t* prefixLabel    = NULL;
2181 2181
 
2182 2182
   cmDspInst_t* sg  = cmDspSysAllocInst(   h, "SigGen",    NULL, 3, sgHz, sgShapeId, sgGain );
2183 2183
   cmDspInst_t* ao  =  cmDspSysAllocAudioOut( h, 0, 1.0 );
2184 2184
   
2185
-  cmDspInst_t* shape  = cmDspSysAllocScalarP( h, grpSymId, preLbl, "Shape",     0.0, 3.0,     1.0,  sgShapeId);
2186
-  cmDspInst_t* hz     = cmDspSysAllocScalarP( h, grpSymId, preLbl, "Hz",        0.0, 10000.0, 0.01, sgHz);
2187
-  cmDspInst_t* gain   = cmDspSysAllocScalarP( h, grpSymId, preLbl, "Gain",      0.0, 1.0,     0.01, sgGain);
2185
+  cmDspInst_t* shape  = cmDspSysAllocScalarP( h, grpSymId, prefixLabel, "Shape",     0.0, 3.0,     1.0,  sgShapeId);
2186
+  cmDspInst_t* hz     = cmDspSysAllocScalarP( h, grpSymId, prefixLabel, "Hz",        0.0, 10000.0, 0.01, sgHz);
2187
+  cmDspInst_t* gain   = cmDspSysAllocScalarP( h, grpSymId, prefixLabel, "Gain",      0.0, 1.0,     0.01, sgGain);
2188 2188
   
2189 2189
   cmDspInst_t* preset    = cmDspSysAllocInst(   h, "Preset", NULL, 1, grpSymId );
2190 2190
   cmDspInst_t* presetLbl = cmDspSysAllocInst(   h, "Text",   "Preset",      1, "" );

Loading…
Annulla
Salva