TVideoGrabber.AudioDeviceIndex

Prev

Next

TVideoGrabber

Methods

 




































































































Returns the index of a given audio device in the AudioDevices list.


Declaration
function AudioDeviceIndex(Value: String): LongInt;


int __fastcall AudioDeviceIndex(wchar_t *Value)


Function AudioDeviceIndex(Value As String) As Long

Description

Used to retrieve 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".


See Also
TAudioFormat AssociateAudioAndVideoDevices AudioBalance AudioDevice AudioDeviceName AudioDeviceRendering AudioDevices AudioDevicesCount AudioFormat AudioFormats AudioInput AudioInputIndex AudioInputLevel AudioInputMono AudioInputs AudioInputsCount AudioSource IsAudioCrossbarAvailable IsAudioDeviceASoundCard IsAudioDeviceConnected IsAudioInputBalanceAvailable OnAudioBufferNegotiation OnAudioDeviceSelected SpeakerBalance SpeakerControl SpeakerVolume