Analog Audio Stream Data Range

This example uses a KSDATARANGE structure to describe the data range for an analog audio stream.

  DataRange.FormatSize  = sizeof(KSDATARANGE);
  DataRange.Flags       = 0;
  DataRange.SampleSize  = 0;
  DataRange.Reserved    = 0;
  DataRange.MajorFormat = STATICGUIDOF(KSDATAFORMAT_TYPE_AUDIO);
  DataRange.SubFormat   = STATICGUIDOF(KSDATAFORMAT_SUBTYPE_ANALOG);
  DataRange.Specifier   = STATICGUIDOF(KSDATAFORMAT_SPECIFIER_NONE);

Typically, a miniport driver uses this type of data range to describe the analog signal passing through a bridge pin, which represents a hardwired connection on an audio adapter card. For more information about bridge pins, see Audio Filter Graphs. Also, see the code example in Exposing Filter Topology.