SetActionCount
Top  Previous  Next

Description

Sets the amount of action signals supported by the virtual camera.

[C++]
int
 SetActionCount(unsigned int count);


Parameters
[C/C++]
 
[in] unsigned int count  
Integer value specifying the amount of stream channels in the virtual camera. Possible values are 1 or 2.  
 

Return Values


S_OK  
Success  
E_FAIL  
Failure  
E_INVALIDARG  
Value out of range  
 

Example

This fragment of code instantiates a camera object and sets the amount of action signals to 2:

static CGevCamera* m_pCamera;  
m_pCamera = createCamera();  
 
m_pCamera->SetActionCount(2);  
 

Remarks


This method allows you to configure the virtual camera for the amount of separate action signals it will be able to process. It must be called in order for action commands to be supported.

For more information on action commands refer to SetActionCallback.

Note that the camera must be in the disconnected state in order for this method to work.