cmDspProc4.h/c : Added 'decl' entry type to scMod.
This commit is contained in:
parent
c02080bfcd
commit
5ec36d98b9
@ -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 )
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user