IAMAudioCutListElement Interface

The IAMAudioCutListElement interface provides support for a cutlist element for an audio file stream in a WAV or AVI file.

For more information, see About Cutlists and Using Cutlists.

Usually, you don't need to implement this interface because Microsoft® DirectShow® provides the CLSID_AudioFileClip object that implements it for you. Implement this interface in your application when you need to change the default behavior of this interface.

Use this interface in your filter when you specify an audio-based media clip. Call QueryInterface on the IAMCutListElement interface to determine if the element is an audio type element.

Methods in Vtable Order

IUnknown methodsDescription
QueryInterface Retrieves pointers to supported interfaces.
AddRef Increments the reference count.
Release Decrements the reference count.
IAMAudioCutListElement methodsDescription
GetStreamIndex Retrieves the index to the stream in the AVI file.
HasFadeIn Determines if the element fades in automatically.
HasFadeOut Determines if the element fades out automatically.

IAMAudioCutListElement::GetStreamIndex

IAMAudioCutListElementInterface

Retrieves the index to the stream in the AVI file.

Syntax

HRESULT GetStreamIndex(
  DWORD *piStream
  );

Parameters

piStream
[out] Pointer to the stream number to be opened.

Return Value

Returns an HRESULT value that depends on the implementation of the interface. HRESULT can include one of the following standard constants, or other values not listed.
E_FAIL Failure.
E_INVALIDARG Argument is invalid.
E_NOTIMPL Method is not supported.
E_POINTER Null pointer argument.
S_OK Success.

Remarks

This method must always retrieve zero for the stream index. For AVI files, only the first audio stream is supported.

IAMAudioCutListElement::HasFadeIn

IAMAudioCutListElement Interface

Determines if the element fades in automatically.

Syntax

HRESULT HasFadeIn(void);

Return Value

Returns S_OK if the element should be automatically faded in, or S_FALSE if not.

Remarks

This method always returns S_OK, but fading in and out is not currently supported.

IAMAudioCutListElement::HasFadeOut

IAMAudioCutListElement Interface

Determines if the element fades out automatically.

Syntax

HRESULT HasFadeOut(void);

Return Value

Returns S_OK if the element should be automatically faded out, or S_FALSE if not.

Remarks

This method always returns S_OK, but fading in and out is not currently supported.


Top of Page Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.