Microsoft DirectX 8.0 |
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.
MethodName Description get_Flags Returns a flag indicating whether the audio component is in AC-3 format. put_Flags Sets a flag indicating whether the audio component is in AC-3 format.
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;
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;