Microsoft DirectX 9.0

IMemoryData Interface

The IMemoryData interface contains methods that set and retrieve memory data on audio data objects. Audio data objects provide the underlying data which stream samples access. This interface provides a way to initialize memory buffers and to set actual amounts of audio data in the objects. Additionally, the GetInfo method can be used to retrieve audio memory data.

Implement this interface on underlying audio data objects that audio stream sample objects will access.

Typically these methods are called by the IAudioMediaStream or IAudioStreamSample object, rather than by the application.

In addition to the methods inherited from IUnknown, the IMemoryData interface exposes the following methods.

Method Description
GetInfo Retrieves information describing an audio data object.
SetActual Sets the amount of audio data currently in the object, in bytes.
SetBuffer Initializes a memory buffer with a pointer to memory and length.