From 5ec36d98b910167fd9e222fc5cc89d8a0d74eb63 Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 15 Oct 2015 18:38:31 -0400 Subject: [PATCH] cmDspProc4.h/c : Added 'decl' entry type to scMod. --- cmProc4.c | 7 +++++++ cmProc4.h | 1 + 2 files changed, 8 insertions(+) diff --git a/cmProc4.c b/cmProc4.c index bc7a8e7..bffb21a 100644 --- a/cmProc4.c +++ b/cmProc4.c @@ -2693,6 +2693,7 @@ typedef struct _cmScModTypeMap_t _cmScModTypeArray[] = { + { kDeclModTId, 0, "decl" }, { kSetModTId, 1, "set" }, { kLineModTId, 2, "line" }, { kSetLineModTId, 3, "sline" }, @@ -3164,6 +3165,7 @@ cmRC_t _cmScModActivate(cmScModulator* p, cmScModEntry_t* ep ) switch( ep->typeId ) { + case kDeclModTId: case kSetModTId: break; @@ -3220,6 +3222,11 @@ bool _cmScModExec( cmScModulator* p, cmScModVar_t* vp ) switch( vp->entry->typeId ) { + case kDeclModTId: + sendFl = false; + fl = true; + break; + case kSetModTId: { if((rc = _cmScModGetParam(p,&vp->entry->beg,&vp->value)) != cmOkRC ) diff --git a/cmProc4.h b/cmProc4.h index a2c5c44..ccbc2e0 100644 --- a/cmProc4.h +++ b/cmProc4.h @@ -421,6 +421,7 @@ extern "C" { enum { kInvalidModTId, + kDeclModTId, // declare a variable but do not associate a value with it (allows a variable to be connected to w/o sending a value) kSetModTId, // set variable to parray[0] at scLocIdx kLineModTId, // linear ramp variable to parray[0] over parray[1] seconds kSetLineModTId, // set variable to parray[0] and ramp to parray[1] over parray[2] seconds