IDvdInfo2::GetAudioAttributes method
The GetAudioAttributes method retrieves the attributes of the specified audio stream in the current title or menu.
Syntax
HRESULT GetAudioAttributes(
[in] ULONG ulStream,
[out] DVD_AudioAttributes *pATR
);
Parameters
- ulStream [in]
-
Variable of type ULONG specifying the audio stream whose attributes you wish to query. See Remarks.
- pATR [out]
-
Pointer to a DVD_AudioAttributes structure that is filled with the attributes of the specified audio stream.
Return value
Returns one of the following HRESULT values.
| Return code | Description |
|---|---|
|
Success. |
|
The DVD Navigator is not initialized. |
|
The stream's audio attributes are not available. |
|
Invalid argument. |
Remarks
ulStream can be any index number from 0 through 7 or one of the following values:
| Value | Description |
|---|---|
| DVD_DEFAULT_AUDIO_STREAM | To query for the attributes of the default audio stream. |
| DVD_STREAM_DATA_CURRENT | To query the current stream. |
| DVD_STREAM_DATA_VMGM | To query for the VMGM's audio attributes. |
| DVD_STREAM_DATA_VTSM | To query for the VTSM's audio attributes. |
The use of this method is demonstrated in the DVDSample application in CDvdCore::GetAudioAttributes and CAudioLangDlg::GetAudioLang.
Requirements
|
Minimum supported client |
Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
Header |
|
|
Library |
|
See also