This implementation will be called if the HDMI or SPDIF modes change. For example, the HDMI cable is removed from the TV and plugged into a 7.1 A/V receiver.
public:
HRESULT OnChannelCountsChanged(
UINT HdmiChannelCount,
UINT SpdifChannelCount
)
HdmiChannelCount
Type: UINT
The updated HDMI channel count.
SpdifChannelCount
Type: UINT
The updated SPDIF channel count.
Type: HRESULT
A success or error code.
Refer to WASAPI error codes.
Header: Declared in mmdeviceapi.h.
Library: Use MMDevApi.lib.