Method function DSCaptureDevice.TDSDevice.GetDeviceList(TStrings) : 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 ) : Boolean;

C++ Builder:

bool __fastcall GetDeviceList( TStrings ADevicesList );

Visual C++ (MFC):

bool GetDeviceList( CTStrings ADevicesList );

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 );

C++ Builder example:

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

Visual C++ example:

CTStrings ADevicesList;

ALDSAudioOut1.AudioOutputDevice.GetDeviceList( ADevicesList );

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);

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);

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)

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.
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox