AUDIO_STREAM_CONFIG_CAPS structure (strmif.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.]

The AUDIO_STREAM_CONFIG_CAPS structure describes a range of audio formats. Audio compression and capture filters use this structure to describe the formats they can produce.

Syntax

typedef struct _AUDIO_STREAM_CONFIG_CAPS {
  GUID  guid;
  ULONG MinimumChannels;
  ULONG MaximumChannels;
  ULONG ChannelsGranularity;
  ULONG MinimumBitsPerSample;
  ULONG MaximumBitsPerSample;
  ULONG BitsPerSampleGranularity;
  ULONG MinimumSampleFrequency;
  ULONG MaximumSampleFrequency;
  ULONG SampleFrequencyGranularity;
} AUDIO_STREAM_CONFIG_CAPS;

Members

guid

Will be set to MEDIATYPE_Audio to indicate an audio sample.

MinimumChannels

Minimum number of channels.

MaximumChannels

Maximum number of channels.

ChannelsGranularity

Granularity of the channels. For example, the filter might specify channels 2 through 4, in steps of 2.

MinimumBitsPerSample

Minimum bits per sample.

MaximumBitsPerSample

Maximum bits per sample.

BitsPerSampleGranularity

Granularity of the bits per sample. For example, the filter might specify 8 bits per sample through 32 bits per sample, in steps of 8.

MinimumSampleFrequency

Minimum sample frequency.

MaximumSampleFrequency

Maximum sample frequency.

SampleFrequencyGranularity

Granularity of the frequency. For example, the filter might specify 11025 Hz to 44100 Hz, in steps of 11025 Hz.

Requirements

Requirement Value
Header strmif.h (include Dshow.h)

See also

DirectShow Structures

IAMStreamConfig::GetStreamCaps