DeviceGet Method (MItemClass)
type of the device
Possible values:
name of the device
parameters of the device
index of the device
Gets the current device and its properties.
Syntax
Public Overridable Sub DeviceGet( _
   ByVal _bsType As String, _
   ByRef _pbsName As String, _
   ByRef _pbsParam As String, _
   ByRef _pnIndex As Integer _
) 
public virtual void DeviceGet( 
   string _bsType,
   out string _pbsName,
   out string _pbsParam,
   out int _pnIndex
)
public procedure DeviceGet( 
    _bsType: String;
   Out  _pbsName: String;
   Out  _pbsParam: String;
   Out  _pnIndex: Integer
); virtual; 
public: virtual void DeviceGet( 
   BSTR* _bsType,
   [PARAMFLAG::Out] BSTR* _pbsName,
   [PARAMFLAG::Out] BSTR* _pbsParam,
   [PARAMFLAG::Out] int _pnIndex
) 

Parameters

_bsType
type of the device
Possible values:
  • "video" - currently set video device
  • "video::line-in" - currently set input line of video device
  • "audio" - currently set audio device
  • "audio::line-in" - currently set input line of audio device
  • "renderer" - currently set renderer
  • "renderer::line-out" - currently set renderer output line
  • "renderer::keying" - currently set keying state value
  • "renderer::line-in" - currently set renderer input like (for keying)
_pbsName
name of the device
_pbsParam
parameters of the device
_pnIndex
index of the device
Example
Dim strCur As String = ""
Dim strParam As String = ""
Dim nIndex As Integer = 0
Dim m_objLive As New MLiveClass()
'Get current video device
m_objMLive.DeviceGet("video", strCur, strParam, nIndex)
'Get current audio device
m_objMLive.DeviceGet("audio", strCur, strParam, nIndex)
string strCur = "";
string strParam = "";
int nIndex = 0;
MLiveClass m_objLive = new MLiveClass();
//Get current video device
m_objMLive.DeviceGet("video", out strCur, out strParam, out nIndex);
//Get current audio device
m_objMLive.DeviceGet("audio", out strCur, out strParam, out nIndex);
var
m_objLive: MLive;
strCur, strParam: string;
nIndex: integer;
begin
m_objLive:= CreateComObject(CLASS_MLive) as MLive;
//Get current video device
m_objMLive.DeviceGet('video', strCur, strParam, nIndex);
//Get current audio device
m_objMLive.DeviceGet('audio', strCur, strParam, nIndex);
end;
See Also

Reference

MItemClass Class
MItemClass Members