Compartir a través de


AUDIO_STREAM_CONFIG_CAPS (Compact 2013)

3/26/2014

This structure contains information about all possible audio formats supported.

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 this pin supports.
  • MaximumChannels
    Maximum number of channels this pin supports (for example, 2 for stereo).
  • ChannelsGranularity
    Granularity of the channels.

    For example, you could specify channels 2 through 4 in steps of 2.

  • MinimumBitsPerSample
    Minimum bits per sample.
  • MaximumBitsPerSample
    Maximum bits per sample.
  • BitsPerSampleGranularity
    Granularity of the bits.

    For example, you could specify 8 bits or 32 bits in steps of 8.

  • MinimumSampleFrequency
    Minimum frequency allowed.
  • MaximumSampleFrequency
    Maximum frequency allowed.
  • SampleFrequencyGranularity
    Granularity of the frequency.

    For example, you could specify 11025 Hz to 44100 Hz in steps of 11025 Hz.

Remarks

This structure is returned by an audio capture or compression filter.

Requirements

Header

dshow.h

Library

Strmiids.lib

See Also

Reference

DirectShow Structures