IAudioMediaStream 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 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.

Inheritance

The IAudioMediaStream interface inherits from IMediaStream. IAudioMediaStream also has these types of members:

Methods

The IAudioMediaStream interface has these methods.

 
IAudioMediaStream::CreateSample

Note  This interface is deprecated. New applications should not use it. Creates an audio stream sample for use with the specified stream.
IAudioMediaStream::GetFormat

Note  This interface is deprecated. New applications should not use it. Retrieves the stream data's current format.
IAudioMediaStream::SetFormat

Note  This interface is deprecated. New applications should not use it. Sets the format for the stream.

Requirements

   
Target Platform Windows
Header austream.h

See also

IMediaStream