From 070962c7210d99b61a293002dd39e4fd7c6240f9 Mon Sep 17 00:00:00 2001 From: kevin Date: Fri, 1 Mar 2013 17:25:15 -0800 Subject: [PATCH] cmDspClass.h/c: Added cmSampleDsvFl and cmRealDsvFl to cmDspValueSet(). --- dsp/cmDspClass.c | 10 +++++++++- dsp/cmDspClass.h | 2 ++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/dsp/cmDspClass.c b/dsp/cmDspClass.c index e7bb63e..83d2c6b 100644 --- a/dsp/cmDspClass.c +++ b/dsp/cmDspClass.c @@ -411,7 +411,7 @@ void cmDspArgSetup( { lp = label; label[labelCharCnt] = 0; - snprintf(label,labelCharCnt,"%s-%i",labelPrefix,labelId); + snprintf(label,labelCharCnt,"%s-%i",labelPrefix,labelId); } // 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 cmDsvSetDouble(dvp, cmDsvGetDouble(svp)); break; + case kSampleDsvFl: + cmDsvSetSample(dvp, cmDsvGetSample(svp)); + break; + + case kRealDsvFl: + cmDsvSetReal(dvp, cmDsvGetReal(svp)); + break; + case kSymDsvFl: cmDsvSetSymbol(dvp, cmDsvGetSymbol(svp)); break; diff --git a/dsp/cmDspClass.h b/dsp/cmDspClass.h index 636700c..cb7d221 100644 --- a/dsp/cmDspClass.h +++ b/dsp/cmDspClass.h @@ -18,6 +18,7 @@ extern "C" { kThreadFailDspRC, // 6 kNetFailDspRC, // 7 kCsvFailDspRC, // 8 + kDspStoreFailDspRC, kProcFailDspRC, @@ -150,6 +151,7 @@ extern "C" { const cmChar_t* doc; // document string } cmDspVar_t; + typedef struct { const char* label;