|
@@ -1417,6 +1417,8 @@ enum
|
1417
|
1417
|
kChCntXfId,
|
1418
|
1418
|
kFadeTimeMsXfId,
|
1419
|
1419
|
kMstrGateXfId,
|
|
1420
|
+ kFadeInTimeMsXfId,
|
|
1421
|
+ kFadeOutTimeMsXfId,
|
1420
|
1422
|
kOnXfId,
|
1421
|
1423
|
kOffXfId,
|
1422
|
1424
|
kGateBaseXfId,
|
|
@@ -1442,11 +1444,13 @@ cmDspInst_t* _cmDspXfaderAlloc(cmDspCtx_t* ctx, cmDspClass_t* classPtr, unsigne
|
1442
|
1444
|
{
|
1443
|
1445
|
cmDspVarArg_t args[] =
|
1444
|
1446
|
{
|
1445
|
|
- { "chs", kChCntXfId, 0, 0, kUIntDsvFl | kReqArgDsvFl, "Input and Output channel count"},
|
1446
|
|
- { "ms", kFadeTimeMsXfId, 0, 0, kInDsvFl | kDoubleDsvFl | kOptArgDsvFl, "Fade time in milliseonds."},
|
1447
|
|
- { "mgate", kMstrGateXfId, 0, 0, kInDsvFl | kBoolDsvFl | kOptArgDsvFl, "Master gate - can be used to set all gates."},
|
1448
|
|
- { "on", kOnXfId, 0, 0, kOutDsvFl | kSymDsvFl, "Send 'on' when all ch's transition from off to on."},
|
1449
|
|
- { "off", kOffXfId, 0, 0, kOutDsvFl | kSymDsvFl, "Send 'off' when all ch's transition from on to off."},
|
|
1447
|
+ { "chs", kChCntXfId, 0, 0, kUIntDsvFl | kReqArgDsvFl, "Input and Output channel count"},
|
|
1448
|
+ { "ms", kFadeTimeMsXfId, 0, 0, kInDsvFl | kDoubleDsvFl | kOptArgDsvFl, "Fade time in milliseonds."},
|
|
1449
|
+ { "mgate", kMstrGateXfId, 0, 0, kInDsvFl | kBoolDsvFl | kOptArgDsvFl, "Master gate - can be used to set all gates."},
|
|
1450
|
+ { "ims", kFadeInTimeMsXfId, 0, 0, kInDsvFl | kDoubleDsvFl | kOptArgDsvFl, "Fade in time in milliseonds."},
|
|
1451
|
+ { "oms", kFadeOutTimeMsXfId, 0, 0, kInDsvFl | kDoubleDsvFl | kOptArgDsvFl, "Fade out time in milliseonds."},
|
|
1452
|
+ { "on", kOnXfId, 0, 0, kOutDsvFl | kSymDsvFl, "Send 'on' when all ch's transition from off to on."},
|
|
1453
|
+ { "off", kOffXfId, 0, 0, kOutDsvFl | kSymDsvFl, "Send 'off' when all ch's transition from on to off."},
|
1450
|
1454
|
};
|
1451
|
1455
|
|
1452
|
1456
|
if( va_cnt < 1 )
|
|
@@ -1592,6 +1596,15 @@ cmDspRC_t _cmDspXfaderRecv(cmDspCtx_t* ctx, cmDspInst_t* inst, const cmDspEvt_t*
|
1592
|
1596
|
p->chGateV[i] = fl;
|
1593
|
1597
|
}
|
1594
|
1598
|
break;
|
|
1599
|
+
|
|
1600
|
+ case kFadeInTimeMsXfId:
|
|
1601
|
+ cmXfaderSetXfadeInTime(p->xfdp,cmDspDouble(inst,kFadeInTimeMsXfId));
|
|
1602
|
+ break;
|
|
1603
|
+
|
|
1604
|
+ case kFadeOutTimeMsXfId:
|
|
1605
|
+ cmXfaderSetXfadeOutTime(p->xfdp,cmDspDouble(inst,kFadeOutTimeMsXfId));
|
|
1606
|
+ break;
|
|
1607
|
+
|
1595
|
1608
|
}
|
1596
|
1609
|
|
1597
|
1610
|
// record gate changes into p->chGateV[] for later use in _cmDspXfaderExec().
|