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.

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

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

Methods in Vtable Order

IUnknown methodsDescription
QueryInterface Retrieves pointers to supported interfaces.
AddRef Increments the reference count.
Release Decrements the reference count.
IAudioStreamSample methodsDescription
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.

Syntax

HRESULT GetAudioData(
  IAudioData **ppAudio );

Parameters

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

Return Value

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


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