DirectShow Animated Header -- IAudioStreamSample Interface DirectShow Animated Header -- IAudioStreamSample Interface* Microsoft DirectShow SDK
*Index  *Topic Contents
*Previous Topic: IAudioMediaStream Interface
*Next Topic: IMemoryData Interface

IAudioStreamSample Interface


The IAudioStreamSample interface retrieves information from the underlying IAudioData data objects.

For sample code that implements the audio streaming interfaces, see Multimedia Streaming Sample Code.

When to Implement

Implement this interface on audio stream sample objects when they need access to an IAudioData object's data .

When to Use

Use this interface when your application needs to access an IAudioData object's data for its audio stream.

Methods in Vtable Order
IUnknown methods Description
QueryInterface Retrieves pointers to supported interfaces.
AddRef Increments the reference count.
Release Decrements the reference count.
IAudioStreamSample methods Description
GetAudioData Retrieves the address of a pointer to the IAudioData object associated with the sample.


IAudioStreamSample::GetAudioData

IAudioStreamSample Interface

Retrieves the address of a pointer to the IAudioData object associated with the sample.

HRESULT GetAudioData(
  IAudioData **ppAudio );

Parameters
ppAudio
[out] Address of a pointer to the IAudioData object.
Return Values

Returns S_OK if successful or E_POINTER if the parameter is NULL.

© 1998 Microsoft Corporation. All rights reserved. Terms of Use.

*Top of Page