FMX.Media.TAudioCaptureDevice
Delphi
TAudioCaptureDevice = class(TCaptureDevice)
C++
class PASCALIMPLEMENTATION TAudioCaptureDevice : public TCaptureDevice
Contents
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
- FMX.Media.TCaptureDeviceManager
- FMX.Media.TCaptureDevice
- FMX.Media.TVideoCaptureDevice
- Audio-Video in FireMonkey
Samples
- FireMonkey Audio Rec-Play sample