AudioScience HPI Version_4.24.1
|
The BLU link Channel block is used for manipulating BLU link OffRamp channels. More...
The BLU link Channel block is used for manipulating BLU link OffRamp channels.
The BLU link Channel block is an implementation of a universal control (see Universal Control).
The list of supported datatypes is as follows:
A 32 bit integer.
BLU link OffRamp Channel |
Control BLU link OnRamp settings |
OffRampChannel |
The BLU link off ramp channel |
Name | BLU link OffRamp Channel |
Description | Control BLU link OnRamp settings |
Optional | No |
Type | sequence / entity_type_sequence / a sequence of parameters follow |
Count | 1 |
Attributes | read |
Added in version | 4.14.00 |
Example | static void print_block_control( hpi_hsubsys_t *hSubSys, hpi_handle_t hMixer, hpi_handle_t hControl ) { enum e_entity_role r; hpi_err_t err; char name[256]; size_t size, items; int count; err = HPI_Object_GetRole(hControl, &r); if (err) HandleError(err); // name size = sizeof(name); err = HPI_Object_GetInfo( hControl, entity_type_cstring, entity_role_classname, name, &size, &items); if (err) HandleError(err); printf(" %s", name); // count size = sizeof(count); err = HPI_Object_GetInfo( hControl, entity_type_int, entity_role_value, &count, &size, &items); if (err) HandleError(err); printf(", count %d", count); // fetch parameter handles if ( r == entity_role_block ) { hpi_handle_t params[16]; /* should really use count */ int i; size_t number; printf(" ["); number = sizeof(params)/sizeof(hpi_handle_t); err = HPI_Object_BlockParameters( hMixer, hControl, params, &number); if (err) HandleError(err); for ( i=0 ; i<number ; i++ ) { if (i > 0) printf(", "); printf("%d",params[i]); } printf("]"); } } |
Name | OffRampChannel |
Description | The BLU link off ramp channel. The input range of values has a range of 0-256 and internally this is mapped to an "enable" bit and a range of 0 - 255. Value of 0 therefore implies disable. Values 1 - 256 are internally mapped to 0 - 255. |
Optional | No |
Type | integer / entity_type_int / C99 type int32_t |
Count | 1 |
Attributes | read/write |
Added in version | 4.14.00 |
Example | struct hpi_control_t asihpi_control; hpi_handle_t block; hpi_handle_t param; size_t value_size; size_t value_items; int OffRampChannel; /* set source and destination node */ asihpi_control.wSrcNodeType = HPI_SOURCENODE_BLULINK; asihpi_control.wSrcNodeIndex = 0; asihpi_control.wDstNodeType = 0; asihpi_control.wDstNodeIndex = 0; err = HPI_Object_BlockHandle(hMixer, asihpi_control.wSrcNodeType, asihpi_control.wSrcNodeIndex, asihpi_control.wDstNodeType, asihpi_control.wDstNodeIndex, "BLU link OffRamp Channel", &block ); err = HPI_Object_ParameterHandle( hMixer, block, "OffRampChannel", ¶m); if (!err) { err = HPI_Object_GetInfo( param, entity_type_int, entity_role_value, NULL, &value_size, &value_items); } err = HPI_Object_GetValue(param, entity_type_int, 1, &OffRampChannel, sizeof(OffRampChannel) ); OffRampChannel = 1; err = HPI_Object_SetValue(param, entity_type_int, 1, &OffRampChannel, sizeof(OffRampChannel)); |