IMemoryData interface (austream.h)

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

Note  This interface is deprecated. New applications should not use it.
 
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.

Inheritance

The IMemoryData interface inherits from the IUnknown interface. IMemoryData also has these types of members:

Methods

The IMemoryData interface has these methods.

 
IMemoryData::GetInfo

Note  This interface is deprecated. New applications should not use it. Retrieves information describing an audio data object.
IMemoryData::SetActual

Note  This interface is deprecated. New applications should not use it. Sets the amount of audio data currently in the object.
IMemoryData::SetBuffer

Note  This interface is deprecated. New applications should not use it. Initializes a memory buffer with a pointer to memory and length.

Requirements

   
Target Platform Windows
Header austream.h