Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
| Microsoft DirectShow 9.0 | 
IDvdInfo2::GetAudioAttributes
The GetAudioAttributes method retrieves the attributes of the specified audio stream in the current title or menu.
Syntax
HRESULT GetAudioAttributes( ULONG ulStream, 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 Values
Returns one of the following HRESULT values.
| Return code | Description | 
| S_OK | Success. | 
| E_UNEXPECTED | The DVD Navigator is not initialized. | 
| VFW_E_DVD_NO_ATTRIBUTES | The stream's audio attributes are not available. | 
| E_POINTER | 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
Header: Declared in Strmif.h; include Dshow.h.
Library: Use Strmiids.lib.
See Also