ILMDVRSink::CopyBufferToFile

Summary

Copies the buffered recording data to the specified fully qualified target file pathname.

Syntax

#include "ILMDVRSink.h"

Language Syntax
C HRESULT ILMDVRSink_CopyBufferToFile(pILMDVRSink, pszTargetFile, startOffset, endOffset)
C++ HRESULT CopyBufferToFile(pszTargetFile, startOffset, endOffset)

Parameters

ILMDVRSink *pILMDVRSink

Pointer to an ILMDVRSink interface.

BSTR pszTargetFile

Pointer to a fully qualified destination file.

double startOffset

Starting offset of data to copy.

double endOffset

Ending offset of data to copy.

Returns

Value Meaning
S_OK The function was successful.
E_UNEXPECTED Starting offset not found.
DISP_E_BADINDEX Index supplied is outside the range of currently valid indexes.
LTMM_E_DVR_NO_RECORDINGS No .LRC recording files exist.
E_INVALIDARG Either the number of files or file size specified is not valid.
<>S_OK An error occurred. Refer to the Error Codes or the HRESULT error codes in the DirectShow documentation.

Comments

Use this function to copy buffered recording data to a new output file. The output file will contain the same media sample data and encodings as the original buffer data.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Function

Topics

Example

Language Example
C ILMDVRSink::CopyBufferToFile
C++ ILMDVRSink::CopyBufferToFile
Help Version 22.0.2023.1.26
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Multimedia C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.