Synopsis
int OMset_obj_iarray_prop(
OMobj_id object_id,
OMobj_name property_name,
int nvalues,
int values[]);
Description
This routines sets the value of a property on an object which is defined by an integer array of values. It is most useful to set the value of the NEportLevels property when you are setting the number of input port levels to be different than the number of output port levels. If you are setting both to the same value, you can use OMset_obj_iprop instead.
Arguments
object_id
The object whose property you want to set.
property_name
The property name of the property you want to set. This can either be one of the global variables defined in <avs/om_att.h> or <avs/ne_om.h> or the return value from the function OMstr_to_name.
nvalues
The number of values in the array.
values
The values in the array. These values are copied out of the location specified by the values argument.
Returned value
The status code (see Return Status
Example
Here is an example that sets the NEportLevels property on the object in the variable obj:
int values[2];
values[0] = 2;
values[1] = 3;
OMset_obj_iarray_prop(obj, OMstr_to_name("NEportLevels"),
2, values);