Microsoft DirectX 9.0

IAudioMediaStream Interface

The IAudioMediaStream interface controls audio media streams by providing methods that set and get the stream's format. This interface inherits from the IMediaStream interface and is used to create one or more IAudioStreamSample objects. You can also use it to set and retrieve the stream data's current format.

This interface is currently defined only for PCM format audio data.

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

Like video, audio is contained in a self-describing container object. Implement this interface when an object needs to control streaming audio.

Use this interface when you want to generate audio in your application.

In addition to the methods inherited from IMediaStream, the IAudioMediaStream interface exposes the following methods.

Method Description
CreateSample Creates an audio stream sample for use with this stream.
GetFormat Retrieves the stream data's current format.
SetFormat Sets the format for the stream.