IltmsLiveStreamDevConfig::get_IsAudioEncoded

Summary

Queries whether the current capture configuration has pre-encoded audio.

Syntax

#include "ltms.h"

Language Syntax
C HRESULT IltmsLiveStreamDevConfig_get_IsAudioEncoded(pLiveStreamDevConfig, pVal)
C++ HRESULT get_IsAudioEncoded(pVal)

Parameters

IltmsLiveStreamDevConfig *pLiveStreamDevConfig

Pointer to an IltmsLiveStreamDevConfig interface.

VARIANT_BOOL *pVal

Pointer to a boolean variable that indicates whether the audio is pre-encoded. If VARIANT_TRUE, the audio is pre-encoded. If VARIANT_FALSE, the audio is not pre-encoded.

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 is a helper function to determine whether the audio will be recompressed or is pre-encoded. It can be used by the application designer to disable output audio encoding options if the pre-encoded audio is used by the stream.

The function will only return VARIANT_TRUE if IltmsLiveStream::get_UseDeviceEncoding is VARIANT_TRUE and the audio device has output-compatible encoding.

Before calling this function, you must lock the capture devices with IltmsLiveStreamDevConfig::LockDevices.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Topics

Example

For a C++ example, refer to the Create or Replace Live Stream Example for C++.

Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

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