Microsoft DirectX 8.0

IATSCComponentType Interface

The IATSCComponentType interface is implemented on ATSCComponentType objects and it enables applications to determine if this is an AC3 stream when the stream type is audio.

MethodNameDescription
get_FlagsReturns a flag indicating whether the audio component is in AC-3 format.
put_FlagsSets a flag indicating whether the audio component is in AC-3 format.

IATSCComponentType::get_Flags

IATSCComponentType Interface

Returns a flag indicating whether the audio component is in AC-3 format.

Syntax

HRESULT get_Flags(
    long* Flags
    );

Parameters

*Flags
[out, retval] Variable of type long that will receive the ATSCComponentTypeFlags flags.

Return Value

Returns S_OK if successful. If the method fails, error information can be retrieved using the standard COM IErrorInfo interface.

Remarks

The only defined flag is for AC-3 audio.
	typedef enum ATSCComponentTypeFlags {
		ATSCCT_AC3 = 0x00000001,
	} ATSCComponentTypeFlags;
 

IATSCComponentType::put_Flags

IATSCComponentType Interface

Sets a flag indicating whether the audio component is in AC-3 format.

Syntax

HRESULT put_Flags(
    long flags
    );

Parameters

flags
[in] Variable of type long; 0x1 specifies that the audio stream is AC-3.

Return Value

Returns S_OK if successful. If the method fails, error information can be retrieved using the standard COM IErrorInfo interface.

Remarks

The only defined flag is for AC-3 audio.
	typedef enum ATSCComponentTypeFlags {
		ATSCCT_AC3 = 0x00000001,
	} ATSCComponentTypeFlags;