IltmmWMProfile::AddStream

Summary

Adds a stream to the profile.

Syntax

#include "ltmm.h"

Language Syntax
C HRESULT IltmmWMProfile_AddStream(pProfile, Config)
C++ HRESULT AddStream(Config)

Parameters

IltmmWMProfile *pProfile

Pointer to an IltmmWMProfile interface.

IltmmWMStreamConfig *Config

Pointer to an IltmmWMStreamConfig interface. This interface references information about the stream to add.

Returns

Value Meaning
S_OK The function was successful.
<> S_OK An error occurred. Refer to the Error Codes or the HRESULT error codes in the DirectShow documentation.

Comments

This function works by copying the specified stream configuration information into the profile.

New streams are created using IltmmWMProfile::CreateNewStream. Configure the newly created stream using the IltmmWMStreamConfig interface before adding it to the profile using IltmmWMProfile::AddStream. A maximum of 63 streams can be added to a profile.

For more information, refer to the Microsoft documentation for IWMProfile::AddStream.

To add a script command stream to the file, use IltmmWMScript::put_EnableScriptStream.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Topics

Example

Language Example
C IltmmWMProfile::AddStream
C++ IltmmWMProfile::AddStream
Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 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.