TVideoGrabber.AudioDevice

Prev

Next

TVideoGrabber

Properties

 




































































































Selects the current audio capture device.


Declaration
property AudioDevice: LongInt read GetAudioDevice write SetAudioDevice default DEF_AudioDevice;


__property int AudioDevice=read=GetAudioDevice, write=SetAudioDevice, default=0


Property AudioDevice As Long

Description

Used to select the current audio capture device in the AudioDevices list.
When a new value is assigned to this property, the related device-dependent values are loaded from the registry and the OnAudioDeviceSelected event occurs.

It is possible to select the audio capture device programmatically by its name (as it appears in the AudioDevices list) by using the FindIndexInListByName function, e.g.:

procedure TfrmMainForm.Button1Click(Sender: TObject);
  var
     i: LongInt;
  begin
     i := VideoGrabber.FindIndexInListByName (VideoGrabber.AudioDevices, 'Realtek AC97 Audio (WDM)', false, true);
     if i > -1 then begin  // if this Device exists...
        VideoGrabber.AudioDevice := i;
     end;
  end;
end;


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