TCustomRVMicrophone.AudioInputDeviceIndex, AudioInputDeviceCount, AudioInputDeviceList

Top  Previous  Next

Properties allowing to choose a microphone (or another audio capture device)

property AudioInputDeviceIndex: Integer;
property AudioInputDeviceCount: Integer;
property AudioInputDeviceList[Index: Integer]: String;

AudioInputDeviceCount returns the count of audio capture devices.

AudioInputDeviceList[Index] (where Index is in the range 0..AudioInputDeviceCount-1) returns names of devices. These names can be shown to users in the application UI.

Assign a value in the range 0..AudioInputDeviceCount-1 to AudioInputDeviceIndex to choose the device. Alternatively, you can assign -1 to use the default device.