AudioDeviceIndex
method
Delphi
function AudioDeviceIndex (Value: string): LongInt;
C++Builder
System::LongInt __fastcall AudioDeviceIndex(System::UnicodeString Value);
C#
public int AudioDeviceIndex(string Value);
VB.NET
Public Function AudioDeviceIndex(Value As String) As Integer
C++/Qt
int AudioDeviceIndex (wchar_t *Value);
Returns the index of a given audio device in the AudioDevices list.
The function accepts wild chars. E.g.:
VideoGrabber1.AudioDevice := AudioDeviceIndex ('Hauppauge WinTV USB Pro Audio (WDM)'); // selects the "Hauppauge WinTV USB Pro Audio (WDM)" audio device.
VideoGrabber1.AudioDevice := AudioDeviceIndex ('Hauppauge'); // selects the 1st audio device that begins with "Hauppauge".
VideoGrabber1.AudioDevice := AudioDeviceIndex ('Hauppauge'); // selects the 1st audio device that contains "Hauppauge".