IKsFormatSupport Interface
Previous | Next |
IKsFormatSupport Interface
The IKsFormatSupport interface provides information about the audio data formats that are supported by a software-configured I/O connection (typically a DMA channel) between an audio adapter device and system memory. The client obtains a reference to the IKsFormatSupport interface of a part by calling the IPart::Activate method with parameter refiid set to REFIID IID_IKsFormatSupport. The call to IPart::Activate succeeds only if the part supports the IKsFormatSupport interface. Only a part object that represents a connector with a Software_IO connection type will support this interface. For more information about Software_IO, see ConnectorType Enumeration.
Most Windows audio adapter drivers support the Windows Driver Model (WDM) and use kernel-streaming (KS) properties to represent the hardware description parameters in connectors (referred to as KS pins). The IKsFormatSupport interface provides convenient access to the KSPROPERTY_PIN_DATAINTERSECTION and KSPROPERTY_PIN_PROPOSEDDATAFORMAT properties of a connector to a system bus (typically, PCI or PCI Express) or an external bus (for example, USB). Not all drivers support the KSPROPERTY_PIN_PROPOSEDDATAFORMAT property. If a driver does not support this property, IKsFormatSupport uses the information in the KS data ranges for the connector to determine whether the connector supports the proposed format. For more information about KS properties, KS pins, and KS data ranges, see the Windows DDK documentation.
IKsFormatSupport inherits from the IUnknown interface. In addition to the methods inherited from IUnknown, IKsFormatSupport supports the following methods.
Method | Description |
GetDevicePreferredFormat | Gets the preferred audio stream format for the connection. |
IsFormatSupported | Indicates whether the audio adapter device supports the specified audio stream format. |
Requirements
Client: Windows Vista
Header: Include Devicetopology.h.
See Also
Previous | Next |