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 codeDescription
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_STREAMTo query for the attributes of the default audio stream.
DVD_STREAM_DATA_CURRENTTo query the current stream.
DVD_STREAM_DATA_VMGMTo query for the VMGM's audio attributes.
DVD_STREAM_DATA_VTSMTo 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

Strmif.h (include Dshow.h)

Library

Strmiids.lib

See also

DVD Applications
Error and Success Codes
IDvdInfo2 Interface

 

 

Show: