|
|
|
|
401
|
cmDspInst_t* trp = cmDspSysAllocInst(h,"Scalar", "target", 5, kNumberDuiId, 0.0, 1.0, 0.01, 0.5 );
|
401
|
cmDspInst_t* trp = cmDspSysAllocInst(h,"Scalar", "target", 5, kNumberDuiId, 0.0, 1.0, 0.01, 0.5 );
|
402
|
cmDspInst_t* btn = cmDspSysAllocInst(h,"Button", "btn", 2, kButtonDuiId, 12.3 );
|
402
|
cmDspInst_t* btn = cmDspSysAllocInst(h,"Button", "btn", 2, kButtonDuiId, 12.3 );
|
403
|
cmDspInst_t* chk = cmDspSysAllocInst(h,"Button", "check", 2, kCheckDuiId, 0 );
|
403
|
cmDspInst_t* chk = cmDspSysAllocInst(h,"Button", "check", 2, kCheckDuiId, 0 );
|
|
|
404
|
+ cmDspInst_t* chb = cmDspSysAllocInst(h,"Checkbox","checkbox", 5, "Checker","up","down", 2.0, 1.0);
|
404
|
cmDspInst_t* txt = cmDspSysAllocInst(h,"Text", "text", 1, "Hello" );
|
405
|
cmDspInst_t* txt = cmDspSysAllocInst(h,"Text", "text", 1, "Hello" );
|
405
|
cmDspInst_t* prp = cmDspSysAllocInst(h,"Printer", NULL, 1, ">" );
|
406
|
cmDspInst_t* prp = cmDspSysAllocInst(h,"Printer", NULL, 1, ">" );
|
406
|
cmDspInst_t* mtp = cmDspSysAllocInst(h,"Meter", "meter", 3, 0.0, 0.0, 4.0);
|
407
|
cmDspInst_t* mtp = cmDspSysAllocInst(h,"Meter", "meter", 3, 0.0, 0.0, 4.0);
|
|
|
|
|
428
|
|
429
|
|
429
|
cmDspSysInstallCb(h, txt, "val", prp, "in", NULL );
|
430
|
cmDspSysInstallCb(h, txt, "val", prp, "in", NULL );
|
430
|
|
431
|
|
|
|
432
|
+ cmDspSysInstallCb(h, chb, "out", prp, "in", NULL );
|
|
|
433
|
+ cmDspSysInstallCb(h, chb, "sym", prp, "in", NULL );
|
|
|
434
|
+
|
431
|
return rc;
|
435
|
return rc;
|
432
|
|
436
|
|
433
|
}
|
437
|
}
|
|
|
|
|
2486
|
cmDspInst_t* igain = cmDspSysAllocScalar( h, "igain", 0.0, 3.0, 0.01, 1.0 );
|
2490
|
cmDspInst_t* igain = cmDspSysAllocScalar( h, "igain", 0.0, 3.0, 0.01, 1.0 );
|
2487
|
cmDspInst_t* hop = cmDspSysAllocScalar( h, "hop", 0.0, 16.0, 1.0, 4.0 );
|
2491
|
cmDspInst_t* hop = cmDspSysAllocScalar( h, "hop", 0.0, 16.0, 1.0, 4.0 );
|
2488
|
|
2492
|
|
2489
|
- cmDspInst_t* prnt = cmDspSysAllocInst( h,"Printer", NULL, 1, ">" );
|
|
|
|
|
2493
|
+ //cmDspInst_t* prnt = cmDspSysAllocInst( h,"Printer", NULL, 1, ">" );
|
2490
|
|
2494
|
|
2491
|
// check for allocation errors
|
2495
|
// check for allocation errors
|
2492
|
if((rc = cmDspSysLastRC(h)) != kOkDspRC )
|
2496
|
if((rc = cmDspSysLastRC(h)) != kOkDspRC )
|