CHAI SDK
Version 1.3
|
The Input object is used to receive messages from one or more outputs. More...
Public Member Functions | |
virtual CPNS::IBaseLocalDevice * | GetDevice () const =0 |
Get the related Local DeviceCHAI. More... | |
virtual void | RegisterNotificationHandler (CPNS::IInput_NotificationHandler *const pHandler)=0 |
Register an Input notification handler. More... | |
virtual void | UnregisterNotificationHandler (CPNS::IInput_NotificationHandler *const pHandler)=0 |
Unregister an Input notification handler. More... | |
virtual void | RegisterRecordingNotificationHandler (CPNS::IInput_NotificationHandler *const pHandler)=0 |
Register an Input recording notification handler. More... | |
virtual void | UnregisterRecordingNotificationHandler (CPNS::IInput_NotificationHandler *const pHandler)=0 |
Unregister an Input recording notification handler. More... | |
virtual void | RegisterClockListenerControlNotificationHandler (CPNS::IInput_ClockListenerControlNotificationHandler *const pHandler)=0 |
Register an Input clock listener notification handler. More... | |
virtual void | UnregisterClockListenerControlNotificationHandler (CPNS::IInput_ClockListenerControlNotificationHandler *const pHandler)=0 |
Unregister an Input clock listener notification handler. More... | |
virtual void | RegisterParameterNotificationHandler (CPNS::IInput_ParameterNotificationHandler *const pHandler)=0 |
Register a Parameter notification handler. More... | |
virtual void | UnregisterParameterNotificationHandler (CPNS::IInput_ParameterNotificationHandler *const pHandler)=0 |
Unregister a Parameter notification handler. More... | |
virtual CPNS::uint16 | GetInputID () const =0 |
Get the input ID. More... | |
virtual void | SetCapabilities (CPNS::CombinedInOutCapabilities const caps)=0 |
Set the Output capabilities. More... | |
virtual CPNS::CombinedInOutCapabilities | GetCapabilities () const =0 |
Get the Output capabilities. More... | |
virtual void | SetName (CPNS::char8 const *const utf8Name)=0 |
Change the input name. More... | |
virtual CPNS::UTF8String | GetName () const =0 |
Get the input name. More... | |
virtual CPNS::UTF8String | GetPath () const =0 |
Get the input path. More... | |
virtual void | SetSectionID (CPNS::SectionID const §ionID)=0 |
Set the section type information. More... | |
virtual CPNS::SectionID | GetSectionID () const =0 |
Get the section type information. More... | |
virtual CPNS::boolean | IsCompatibleWith (CPNS::CombinedInOutCapabilities const outCaps)=0 |
Check if the input is compatible with the specified output caps. More... | |
virtual CPNS::Endpoint | GetEndpoint ()=0 |
Get the Endpoint related to the input. More... | |
virtual CPNS::IParameter * | AddModifierParameter (CPNS::char8 const *const utf8Name, CPNS::uint16 const wMsgNum, CPNS::IIndexList *const pIndexList, CPNS::uint16 const wMidPointValue, CPNS::char8 const *const utf8LabelMin, CPNS::char8 const *const utf8LabelMidPoint, CPNS::char8 const *const utf8LabelMax, CPNS::Enums::DataTypes const preferredDataType, CPNS::uint16 const wGroup, CPNS::CombinedModifierInformationProfiles const informationProfiles, CPNS::CombinedControllerTypes const preferredControllerType)=0 |
Add a Modifier parameter. More... | |
virtual CPNS::IParameter * | AddSelectorParameter (CPNS::char8 const *const utf8Name, CPNS::uint16 const wMsgNum, CPNS::IIndexList *const pIndexList, CPNS::ISelectorItemList *const pSelectorItemList, CPNS::uint16 const wGroup, CPNS::CombinedSelectorInformationProfiles const informationProfiles, CPNS::CombinedControllerTypes const preferredControllerType)=0 |
Add a Selector parameter. More... | |
virtual CPNS::IParameter * | AddTextParameter (CPNS::char8 const *const utf8Name, CPNS::uint16 const wMsgNum, CPNS::IIndexList *const pIndexList, CPNS::uint16 const wGroup, CPNS::CombinedTextInformationProfiles const informationProfiles, CPNS::CombinedControllerTypes const preferredControllerType)=0 |
Add a Text parameter. More... | |
virtual void | AddTitleParameter (CPNS::char8 const *const utf8Text, CPNS::uint16 const wGroup)=0 |
Add a title in the parameter list. More... | |
virtual void | ClearParameterDefinition ()=0 |
Clear the whole set of parameters related to this Input. More... | |
virtual CPNS::Enums::Errors | RefreshParameterDefinition ()=0 |
Send a notification to all connected Outputs that the parameter definition changed. More... | |
virtual IParameter * | GetFromMessageDescription (CPNS::Enums::MessageTypes const msgType, CPNS::uint16 const wMsgNum, CPNS::uint16 const wMsgIndex)=0 |
Get a parameter from its related message description. More... | |
virtual CPNS::boolean | HasSources ()=0 |
Check if some sources are currently connected to this input. More... | |
virtual CPNS::Enums::Errors | RemoveSource (CPNS::Endpoint const &source)=0 |
Remove a source. More... | |
virtual CPNS::uint16 | GetNumSources ()=0 |
Get the number of sources. More... | |
virtual CPNS::Endpoint | GetSource (CPNS::uint16 const wSourceIndex)=0 |
Get a source. More... | |
virtual CPNS::Enums::Errors | Signal (CPNS::uint16 const wSignalNumber, CPNS::uint16 const wOptionalData0, CPNS::uint16 const wOptionalData1, CPNS::uint16 const wOptionalData2, CPNS::uint16 const wOptionalData3, CPNS::char8 const *const utf8OptionalData, CPNS::Endpoint const &optionalEndpoint)=0 |
Send a multicast signal directed to all devices present in the source set. More... | |
virtual CPNS::Enums::Errors | DataConsumed ()=0 |
Tells the sources that incoming SysEx or DataTransfer message has been processed. More... | |
virtual CPNS::Enums::Errors | Clock_Set (CPNS::uint8 const bCPQNMultiplier)=0 |
Set expected clock description. More... | |
Public Member Functions inherited from CPNS::IObject | |
virtual CPNS::ICHAI * | GetCHAI ()=0 |
Get a pointer to the CHAI hosting this object. More... | |
virtual void | RegisterObjectNotificationHandler (CPNS::IObject_NotificationHandler *const pHandler)=0 |
Register an Object's notification handler. More... | |
virtual void | UnregisterObjectNotificationHandler (CPNS::IObject_NotificationHandler *const pHandler)=0 |
Unregister an Object's notification handler. More... | |
virtual CPNS::Enums::ObjectTypes | GetObjectType () const =0 |
Get the object type. More... | |
virtual CPNS::uint32 | GetHandle () const =0 |
Get a unique handle to the object if this object is handled by the trashcan. More... | |
virtual void | SetUserDataPtr (void const *const pData)=0 |
Set a custom user ptr data. More... | |
virtual void * | GetUserDataPtr () const =0 |
Get custom user ptr data. More... | |
virtual void | SetUserDataUInt32 (const CPNS::uint32 dwData)=0 |
Set a custom user uint32 data. More... | |
virtual CPNS::uint32 | GetUserDataUInt32 () const =0 |
Get custom user uint32 data. More... | |
The Input object is used to receive messages from one or more outputs.
|
pure virtual |
Add a Modifier parameter.
[in] | utf8Name | the parameter's name |
[in] | wMsgNum | message number (see CPNS::Enums::Modifiers) |
[in] | pIndexList | the related Index List, or NULL if the parameter is not indexed. |
[in] | wMidPointValue | the middle point value. Usually 0x8000 |
[in] | utf8LabelMin | the label for min position |
[in] | utf8LabelMidPoint | the label for middle position |
[in] | utf8LabelMax | the label for max position |
[in] | preferredDataType | the preferred data type if any. Use CPNS::Enums::DT_Knob16 by default. |
[in] | wGroup | the parameter's group. Parameters having the same group number (>0) are physically attached. |
[in] | informationProfiles | combination of optional information profiles |
[in] | preferredControllerType | the preferred controller type for this parameter, without the CPNS::Enums::CT_Msg* part. |
|
pure virtual |
Add a Selector parameter.
[in] | utf8Name | the parameter's name |
[in] | wMsgNum | message number (see CPNS::Enums::Modifiers) |
[in] | pIndexList | the related Index List, or NULL if the parameter is not indexed. |
[in] | pItemList | the Selector Item list. Must be != NULL |
[in] | wGroup | the parameter's group. Parameters having the same group number (>0) are physically attached. |
[in] | informationProfiles | combination of optional information profiles |
[in] | preferredControllerType | the preferred controller type for this parameter, without the CPNS::Enums::CT_Msg* part. |
|
pure virtual |
Add a Text parameter.
[in] | utf8Name | the parameter's name |
[in] | wMsgNum | message number (see CPNS::Enums::Modifiers) |
[in] | pIndexList | the related Index List, or NULL if the parameter is not indexed. |
[in] | wGroup | the parameter's group. Parameters having the same group number (>0) are physically attached. |
[in] | informationProfiles | combination of optional information profiles |
[in] | preferredControllerType | the preferred controller type for this parameter, without the CPNS::Enums::CT_Msg* part. |
|
pure virtual |
Add a title in the parameter list.
[in] | utf8Text | the parameter's name |
[in] | wGroup | the parameter's group. Parameters having the same group number (>0) are physically attached. |
|
pure virtual |
Clear the whole set of parameters related to this Input.
|
pure virtual |
Set expected clock description.
[in] | bCPQNMultiplier | Clock resolution = 24 * bCPQNMultiplier (default value = 1) |
|
pure virtual |
Tells the sources that incoming SysEx or DataTransfer message has been processed.
If this command is not used, the sender wait for 500ms before sending next SysEx or DataTransferMessage.
|
pure virtual |
Get the Output capabilities.
|
pure virtual |
Get the related Local DeviceCHAI.
|
pure virtual |
Get the Endpoint related to the input.
|
pure virtual |
Get a parameter from its related message description.
[in] | msgType | message type |
[in] | wMsgNum | message number |
[in] | wMsgIndex | message index, if relevant |
|
pure virtual |
Get the input ID.
|
pure virtual |
Get the input name.
|
pure virtual |
Get the number of sources.
|
pure virtual |
Get the input path.
|
pure virtual |
Get the section type information.
|
pure virtual |
Get a source.
[in] | wSourceIndex | Index, from 0 to GetNumSources()-1 |
|
pure virtual |
Check if some sources are currently connected to this input.
|
pure virtual |
Check if the input is compatible with the specified output caps.
[in] | outCaps | the output capabilities |
|
pure virtual |
Send a notification to all connected Outputs that the parameter definition changed.
Calling this makes IOutput_NotificationHandler::OnOutput_RefreshParameterDefinition to be called on connected outputs.
|
pure virtual |
Register an Input clock listener notification handler.
[in] | pHandler | Pointer to the application object implementing IInput_ClockListenerControlNotificationHandler. If pHandler is NULL, clear all registered handlers. |
|
pure virtual |
Register an Input notification handler.
[in] | pHandler | Pointer to the application object implementing IInput_NotificationHandler. If pHandler is NULL, clear all registered handlers. |
|
pure virtual |
Register a Parameter notification handler.
[in] | pHandler | Pointer to the application object implementing IInput_ParameterNotificationHandler. If pHandler is NULL, clear all registered handlers. |
|
pure virtual |
Register an Input recording notification handler.
[in] | pHandler | Pointer to the application object implementing IInput_NotificationHandler. If pHandler is NULL, clear all registered handlers. |
|
pure virtual |
Remove a source.
[in] | source | the output which must be disconnected |
|
pure virtual |
Set the Output capabilities.
[in] | caps | the new capabilities |
|
pure virtual |
Change the input name.
[in] | utf8Name | new name |
|
pure virtual |
Set the section type information.
[in] | sectionID | the new Section ID |
|
pure virtual |
Send a multicast signal directed to all devices present in the source set.
Only one signal per device is sent.
[in] | wSignalNumber | Standard Signal numbers are available from CPNS::Enums::Signals |
[in] | wOptionalData0 | Optional value, depending on the signal number |
[in] | wOptionalData1 | Optional value, depending on the signal number |
[in] | wOptionalData2 | Optional value, depending on the signal number |
[in] | wOptionalData3 | Optional value, depending on the signal number |
[in] | utf8OptionalData | Optional value, depending on the signal number |
[in] | optionalEndpoint | Optional value, depending on the signal number |
|
pure virtual |
Unregister an Input clock listener notification handler.
[in] | pHandler | Pointer to the application object implementing IInput_ClockListenerControlNotificationHandler. If pHandler is NULL, clear all registered handlers. |
|
pure virtual |
Unregister an Input notification handler.
[in] | pHandler | Pointer to the application object implementing IInput_NotificationHandler. If pHandler is NULL, clear all registered handlers. |
|
pure virtual |
Unregister a Parameter notification handler.
[in] | pHandler | Pointer to the application object implementing IInput_ParameterNotificationHandler. If pHandler is NULL, clear all registered handlers. |
|
pure virtual |
Unregister an Input recording notification handler.
[in] | pHandler | Pointer to the application object implementing IInput_NotificationHandler. If pHandler is NULL, clear all registered handlers. |