Skip to content

AudioInputIndex

function

Delphi
function AudioInputIndex (Value: string): LongInt;
C++Builder
System::LongInt __fastcall AudioInputIndex(System::UnicodeString Value);
C#
public int AudioInputIndex(string Value);
VB.NET
Public Function AudioInputIndex(Value As String) As Integer
C++/Qt
int AudioInputIndex (wchar_t *Value);

Returns the index of a given audio input in the AudioInputs list.

The function accepts wild chars. E.g.:

VideoGrabber1.AudioInput := AudioInputIndex ('Audio CD'); // selects the "Audio CD" audio input.

VideoGrabber1.AudioInput := AudioInputIndex ('CD'); // selects the 1st audio input that begins with "CD".

VideoGrabber1.AudioInput := AudioInputIndex ('CD'); // selects the 1st audio input that contains "CD".