KSDATAFORMAT_DSOUND structure

The KSDATAFORMAT_DSOUND structure provides detailed information about a DirectSound audio stream.

Syntax

typedef struct {
  KSDATAFORMAT        DataFormat;
  KSDSOUND_BUFFERDESC BufferDesc;
} KSDATAFORMAT_DSOUND, *PKSDATAFORMAT_DSOUND;

Members

        `BufferDesc`

        Describes the DirectSound buffer. This member is a structure of type <a href="..\ksmedia\ns-ksmedia-ksdsound_bufferdesc.md">KSDSOUND_BUFFERDESC</a>.

        `DataFormat`

        Specifies the stream's data format. This member is a structure of type <a href="..\ks\ns-ks-ksdataformat.md">KSDATAFORMAT</a>.

## Remarks
    In response to an input <i>DataRange</i> parameter that specifies a DirectSound format (see example in <a href="https://msdn.microsoft.com/cc31eb2d-7421-4748-b14c-f4d3d15f9884">DirectSound Stream Data Range</a>), the <a href="https://msdn.microsoft.com/library/windows/hardware/ff536764">IMiniport::DataRangeIntersection</a> method checks to see if the specified pin supports a compatible DirectSound format. If so, the method outputs a KSDATAFORMAT_DSOUND structure (see example in <a href="https://msdn.microsoft.com/41d3d5ad-7336-4ecf-b6e2-a24ee4ec731f">DirectSound Stream Data Format</a>) to the buffer that its <i>ResultantFormat</i> parameter points to.

Requirements

   
Windows Driver kit version
Minimum KMDF version
Minimum UMDF version
Header ksmedia.h (include Ksmedia.h)
## See Also

    <dl>

KSDATAFORMAT
KSDSOUND_BUFFERDESC
IMiniport::DataRangeIntersection

Send comments about this topic to Microsoft