TVideoGrabber.StartAudioRecording

Prev

Next

TVideoGrabber

Methods

 




































































































Starts the recording of the audio stream only.


Declaration
function StartAudioRecording: Boolean;


bool __fastcall StartAudioRecording(void)


Function StartAudioRecording() As Boolean

Description

Used to start the recording of the audio stream only by using the current audio capture device.

However if the current video capture device has an audio output, it will be firstly used, so if you wish to be sure use the current audio capture device and not the possible audio stream coming out the current video capture device, set VideoDevice = -1 to keep the video devices disabled.

When the HoldRecording parameter is set to "false", the recording starts as soon as the recording graph is built (after a variable number of seconds, depending of the video capture device, audio/video compressors, etc...).

When the HoldRecording parameter is set to "true", the recording graph is built and started in preview mode, and the recording is held until ResumeRecording has been invoked.

When the recording graph is built, the OnRecordingReadyToStart event occurs to let you know that you can invoke ResumeRecording when you want.

See the recording chapter for more information.


See Also
Recording methods and properties TAVIMuxConfig TASFDeinterlaceMode TAutoFileName TOnRecordingCompleted TOnRecordingReadyToStart TRecordingMethod TSyncPreview AudioRecording AudioSyncAdjustment AutoFileNameMinDigits AVIDurationUpdated AVIFormatOpenDML AVIHeaderInfo AVIInfo Encoder_SetInt HoldRecording IsRecordingPaused Last_Recording_FileName OnBacktimedFramesCountReached OnCopyPreallocDataCompleted OnCopyPreallocDataProgress OnCopyPreallocDataStarted OnCreatePreallocFileCompleted OnCreatePreallocFileStarted OnDiskFull OnRecordingCompleted OnRecordingPaused OnRecordingReadyToStart OnRecordingStarted OnReencodingCompleted OnReencodingStarted PauseRecording PreallocCapFileCopiedAfterRecording PreallocCapFileEnabled PreallocCapFileName PreallocCapFileSizeInMB RecordingBacktimedFramesCount RecordingCanPause RecordingDuration RecordingFileName RecordingFileSizeMaxInMB RecordingFourCC RecordingHeight RecordingInNativeFormat RecordingKBytesWrittenToDisk RecordingMethod RecordingSize RecordingTimer RecordingTimerInterval RecordingWidth ResumeRecording SaveCompressorSettingsToDataString SetMultiplexerFilterByName StartRecording StartSynchronized StopRecording StoragePath Synchronized SyncPreview