Contents

init

Initializes a newly allocated IOAudioLevelControl with the given attributes

Declaration

virtual bool init(
 SInt32 initialValue, 
 SInt32 minValue, 
 SInt32 maxValue, 
 IOFixed minDB, 
 IOFixed maxDB, 
 UInt32 channelID, 
 const char *channelName = 0, 
 UInt32 cntrlID = 0, 
 UInt32 subType = 0, 
 UInt32 usage = 0, 
 OSDictionary *properties = 0);

Parameters

  • initialValue:

    The initial value of the control

  • minValue:

    The lowest possible value the control may have

  • maxValue:

    The highest possible value the control may have

  • minDB:

    A fixed point representation of the db value matching minValue

  • maxDB:

    A fixed point representation of the db value matching maxValue

  • channelID:

    The ID of the channel(s) that the control acts on. Common IDs are located in IOAudioTypes.h.

  • channelName:

    An optional name for the channel. Common names are located in IOAudioTypes.h.

  • cntrlID:

    An optional ID for the control that can be used to uniquely identify controls.

  • properties:

    Standard property list passed to the init() function of any new IOService. This dictionary gets stored in the registry entry for this service.

Return Value

Returns true on success

See Also

Miscellaneous