Skip to content

HoldRecording

property

Delphi
property HoldRecording: Boolean read GetHoldRecording write SetHoldRecording;
C++Builder
__property bool HoldRecording = {read=GetHoldRecording, write=SetHoldRecording, nodefault};
C#
public bool HoldRecording { get; set; }
VB.NET
Public Property HoldRecording As Boolean
C++/Qt
BOOL GetHoldRecording ();
void SetHoldRecording (BOOL Value);

Holds back the start of the recording: with HoldRecording set to true before calling StartRecording (or StartAudioRecording), the recording graph is built in advance and already previewing, so the file is ready to be written immediately. Nothing is written until ResumeRecording is invoked, and the writing begins at that exact moment.

Without HoldRecording, StartRecording starts writing the file only once the recording graph is built, after a few seconds: the file cannot start at the moment StartRecording is called.

The OnRecordingReadyToStart event signals that the graph is ready. ResumeRecording can be invoked from this event or later, at the moment chosen by the application, and StopRecording cancels the recording. RecordingCanPause is not required.