Skip to content

AudioCompressorIndex

function

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

Retrieves the index of a given compressor in the AudioCompressors list.

The function accepts wildcards, e.g.:

VideoGrabber1.AudioCompressor := VideoGrabber1.AudioCompressorIndex ('MPEG Layer-3'); // selects the "MPEG Layer-3" audio compressor.
VideoGrabber1.AudioCompressor := VideoGrabber1.AudioCompressorIndex ('MPEG*'); // selects the 1st audio compressor that begins with "MPEG".
VideoGrabber1.AudioCompressor := VideoGrabber1.AudioCompressorIndex ('*MPEG*'); // selects the 1st audio compressor that contains "MPEG".