AudioDevice
Delphi
property AudioDevice: LongInt read GetAudioDevice write SetAudioDevice default DEF_AudioDevice;
C++Builder
__property System::LongInt AudioDevice = {read=GetAudioDevice, write=SetAudioDevice, default=-1};
C#
public int AudioDevice { get; set; }
VB.NET
Public Property AudioDevice As Integer
C++/Qt
int GetAudioDevice ();
void SetAudioDevice (int Value);
Used to select the current audio capture device in the AudioDevices list. When a new value is assigned to this property, the related device-dependent values are loaded from the registry and the OnAudioDeviceSelected event occurs. It is possible to select the audio capture device programmatically by its name (as it appears in the AudioDevices list) by using the FindIndexInListByName function, e.g.: procedure TfrmMainForm.Button1Click(Sender: TObject); var i: LongInt; begin i := VideoGrabber.FindIndexInListByName (VideoGrabber.AudioDevices, 'Realtek AC97 Audio (WDM)', false, true); if i > -1 then begin // if this Device exists... VideoGrabber.AudioDevice := i; end; end; end;