Show: Delphi C++
Display Preferences

FMX.Media.TAudioCaptureDevice

From RAD Studio API Documentation
Jump to: navigation, search

FMX.Media.TCaptureDeviceSystem.TObjectTAudioCaptureDevice

Delphi

TAudioCaptureDevice = class(TCaptureDevice)

C++

class PASCALIMPLEMENTATION TAudioCaptureDevice : public TCaptureDevice

Properties

Type Visibility Source Unit Parent
class public
FMX.Media.pas
FMX.Media.hpp
FMX.Media FMX.Media

Description

Defines an audio capture device.

TAudioCaptureDevice extends the TCaptureDevice implementation to add specific behavior for audio capturing devices (like microphones).

To access and manage any audio capture device, use TCaptureDeviceManager. Do not explicitly destroy a capturing device; TCaptureDeviceManager keeps the used device in the Current property, and destroys it before closing the application.

Use the DefaultAudioCaptureDevice method to access the default capturing audio device of the system.

Example:

//Delphi declaration
var
  AudioCapture : TAudioCaptureDevice;
begin
  // Get access to the default audio capture device
  AudioCapture:= TCaptureDeviceManager.Current.DefaultAudioCaptureDevice;
  if AudioCapture <> nil then
  begin
     //do something
  end;
end;
  // C++ declaration
TCaptureDeviceManager* CaptureManager = TCaptureDeviceManager::Current;
  // Get access to default audio capture device
TVideoCaptureDevice* AudioCapture = CaptureManager->DefaultAudioCaptureDevice;

if(AudioCapture){
     //do something
}

See Also

Samples

Personal tools
In Other Languages
Previous Versions
Assistance