IsAudioRendererConnected
Delphi
function IsAudioRendererConnected (RendererIndex: LongInt): Boolean;
C++Builder
bool __fastcall IsAudioRendererConnected(System::LongInt RendererIndex);
C#
public bool IsAudioRendererConnected(int RendererIndex);
VB.NET
Public Function IsAudioRendererConnected(RendererIndex As Integer) As Boolean
C++/Qt
BOOL IsAudioRendererConnected (int RendererIndex);
Returns true if the audio renderer at the RendererIndex position in the AudioRenderers list is connected to the PC (device present, e.g. a USB headset plugged in). Returns false if the device has been disconnected.
This function tells whether the device is present: it does not tell whether the audio of the current preview, recording or playback is rendered on this device. To check the current audio renderer when one is selected (AudioRenderer >= 0), pass AudioRenderer.