Skip to content

IsAudioDeviceConnected

function

Delphi
function IsAudioDeviceConnected (DeviceIndex: LongInt): Boolean;
C++Builder
bool __fastcall IsAudioDeviceConnected(System::LongInt DeviceIndex);
C#
public bool IsAudioDeviceConnected(int DeviceIndex);
VB.NET
Public Function IsAudioDeviceConnected(DeviceIndex As Integer) As Boolean
C++/Qt
BOOL IsAudioDeviceConnected (int DeviceIndex);

Returns true if the audio capture device at the DeviceIndex position in the AudioDevices list is connected. Returns false if the device has been disconnected. To check the current audio capture device, pass AudioDevice.

See the Audio capture devices chapter for more information.