Browse Source

cmDspClass.h/c: Added cmSampleDsvFl and cmRealDsvFl to cmDspValueSet().

master
kevin 11 years ago
parent
commit
070962c721
2 changed files with 11 additions and 1 deletions
  1. 9
    1
      dsp/cmDspClass.c
  2. 2
    0
      dsp/cmDspClass.h

+ 9
- 1
dsp/cmDspClass.c View File

@@ -411,7 +411,7 @@ void   cmDspArgSetup(
411 411
   {
412 412
     lp = label;
413 413
     label[labelCharCnt]        = 0;
414
-    snprintf(label,labelCharCnt,"%s-%i",labelPrefix,labelId);
414
+    snprintf(label,labelCharCnt,"%s-%i",labelPrefix,labelId);    
415 415
   }
416 416
 
417 417
   // use the symbol table to hold the label string
@@ -898,6 +898,14 @@ cmDspRC_t   cmDspValueSet( cmDspCtx_t* ctx, cmDspInst_t* inst, unsigned varId, c
898 898
       cmDsvSetDouble(dvp, cmDsvGetDouble(svp)); 
899 899
       break;
900 900
 
901
+    case kSampleDsvFl:
902
+      cmDsvSetSample(dvp, cmDsvGetSample(svp));
903
+      break;
904
+
905
+    case kRealDsvFl:
906
+      cmDsvSetReal(dvp, cmDsvGetReal(svp));
907
+      break;
908
+
901 909
     case kSymDsvFl:
902 910
       cmDsvSetSymbol(dvp, cmDsvGetSymbol(svp));
903 911
       break;

+ 2
- 0
dsp/cmDspClass.h View File

@@ -18,6 +18,7 @@ extern "C" {
18 18
     kThreadFailDspRC,    // 6
19 19
     kNetFailDspRC,       // 7
20 20
     kCsvFailDspRC,       // 8
21
+    kDspStoreFailDspRC,
21 22
 
22 23
     kProcFailDspRC,
23 24
 
@@ -150,6 +151,7 @@ extern "C" {
150 151
     const cmChar_t* doc;      // document string
151 152
   } cmDspVar_t;
152 153
 
154
+
153 155
   typedef struct
154 156
   {
155 157
     const char*      label;

Loading…
Cancel
Save