Share via


PKEY_AudioEngine_DeviceFormat Property

Previous

PKEY_AudioEngine_DeviceFormat Property

The PKEY_AudioEngine_DeviceFormat property specifies the device format, which is the format that the user has selected for the shared-mode stream that flows to or from the audio endpoint device. This format might not be the best default format for an exclusive-mode application to use. Typically, an exclusive-mode application finds a suitable device format by making some number of calls to the IAudioClient::IsFormatSupported method. For more information, see Device Formats.

The vt member of the PROPVARIANT structure is set to VT_BLOB.

The blob member of the PROPVARIANT structure is a structure of type BLOB that contains two members. Member blob.cbSize is a DWORD that specifies the number of bytes in the format description. Member blob.pBlobData points to a WAVEFORMATEX structure that contains the format description. For more information about BLOB, see the Windows SDK documentation. For more information about WAVEFORMATEX, see the Windows DDK documentation.

Requirements

Client: Windows Vista

Header: Include Mmdeviceapi.h.

See Also

Previous