AudioDevices
property, read-only
property AudioDevices: string read GetAudioDevices;
__property System::UnicodeString AudioDevices = {read=GetAudioDevices};
public string AudioDevices { get; }
Public ReadOnly Property AudioDevices As String
wchar_t *GetAudioDevices ();
Retrieves a string that contains the list of audio capture devices available on the current platform. This list is updated when an audio capture device is connected or removed (when the OnDeviceArrivalOrRemoval event occurs).
This list can be assigned to list based controls. E.g.:
ComboBox1.Items.Text := AudioDevices; ComboBox1.ItemIndex := VideoGrabber1.AudioDevice; (index in the AudioDevices list.)
It is possible to retrieve programmatically the index of an audio capture device by using the FindIndexInListByName function as follows:
VideoGrabber.AudioDevice := VideoGrabber.FindIndexInListByName (VideoGrabber.AudioDevices, 'name of my audio device', false, true);
Note: in Delphi and C++Builder versions of the component, this property is available also as a AudioDevices global variable.