Method function DSCaptureDevice.TDSDevice.GetDeviceList(TStrings;TVLDSDriverInfo) : Boolean

From Mitov Wiki Doc
Jump to: navigation, search

This is a Beta Read Only version of this page. Please review and send recommendations to mitov@mitov.com. We will enable the editing as soon as we are happy with the overall Wiki site.

Class: TDSDevice

Contents

Syntax

Delphi:

function GetDeviceList( ADevicesList : TStrings, ADriverInfo : TVLDSDriverInfo ) : Boolean;

C++ Builder:

bool __fastcall GetDeviceList( TStrings ADevicesList, TVLDSDriverInfo ADriverInfo );

Visual C++ (MFC):

bool GetDeviceList( CTStrings ADevicesList, CTVLDSDriverInfo ADriverInfo );

Summary

Call this method to get the list of available devices on the system.

Description

\Returns the list of available devices.


Delphi example:

ALDSAudioOut1.AudioOutputDevice.GetDeviceList( ListBox1.Items, diBoth );

C++ Builder example:

ALDSAudioOut1->AudioOutputDevice->GetDeviceList( ListBox1->Items, diBoth );

Visual C++ example:

CTStrings ADevicesList;

ALDSAudioOut1.AudioOutputDevice.GetDeviceList( ADevicesList, diBoth );

for( int i = 0; i < ADevicesList.Count; i ++ )
  listBox1.AddString( ADevicesList.Strings[ i ] );

Visual C++/CLI example:

Vcl::Strings ^aStr = gcnew Vcl.Strings;

dsAudioOut1->AudioOutputDevice->GetDeviceList(aStr, Mitov::AudioLab::DSDriverInfo::Both);

for (int i = 0; i < aStr->Count; i++)
    listBox1->Items->Add(aStr[i]);

C# example:

Vcl.Strings aStr = new Vcl.Strings();

dsAudioOut1.AudioOutputDevice.GetDeviceList(aStr, Mitov.AudioLab.DSDriverInfo.Both);

for (int i = 0; i < aStr.Count; i++)
    listBox1.Items.Add(aStr[i]);

VB example:

Dim aStr As Vcl.Strings = New Vcl.Strings

DsAudioOut1.AudioOutputDevice.GetDeviceList(aStr, Mitov.AudioLab.DSDriverInfo.Both)

For i As Integer = 0 To aStr.Count
    ListBox1.Items.Add(aStr(i))

Next

Parameters

Parameter Description
ADevicesList A list to be populated with device names.
ADriverInfo Enumerated value that instructs the function
what information to be included in the list.
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox