Operates with devices (input and output)
Methods
DeviceClose
Closes the current device
Syntax
void DeviceClose()
DeviceGet
Gets the current device of a selected type
Syntax
void DeviceGet( eMFDeviceType _eDevType, out int _pnIndex, out string _pbsName )
Parameters
_eDevType - device type
_pnIndex - index of selected device
_pbsName - the name of the device
DeviceGetByIndex
Gets a device by its index.
Syntax
void DeviceGetByIndex( eMFDeviceType _eDevType, int _nIndex, out string _pbsName, out int _pbBusy )
Parameters
_eDevType - device's type
_nIndex - index of a device
_pbsName - device's name
_pbBusy - indicates whether the device busy
DeviceGetCount
Gets a number of available devices of the selected type
Syntax
void DeviceGetCount( eMFDeviceType _eDevType, out int _pnCount )
Parameters
_eDevType - device's type
_pnCount - number of available devices
DeviceGetInternal
gets access to the internal object.
Syntax
void DeviceGetInternal( eMFDeviceType _eDevType, out object _ppObject )
Parameters
_eDevType - device type: eMFDT_Video - returns you video source object, for example ScreenCapture filter eMFDT_Audio - returns audio source object eMFDT_All - returns complete DirectShow graph
_ppObject - result object
DeviceOpen
Open a device for work
Syntax
void DeviceOpen( string _bsDeviceConfig, string _bsPropsList )
Parameters
_bsDeviceConfig - device's configuration
_bsPropsList - additional properties
DeviceSet
Sets a device of the specified type.
Syntax
void DeviceSet( eMFDeviceType _eDevType, int _nIndex, string _bsParam )
Parameters
_eDevType - device's type
_nIndex - index of a device
_bsParam - additional parameters
DeviceShowProps
Shows the device's property page if available.
Syntax
void DeviceShowProps( eMFDeviceType _eDevType, string _bsPropsType, long _lWndHandle )
Parameters
_eDevType - device's type
_bsPropsType - property's type
_lWndHandle - window handle to display a property pageю