(endpointvolume.h) 的 IAudioMeterInformation::GetMeteringChannelCount 方法

GetMeteringChannelCount 方法會取得由尖峰計量監視之音訊數據流中的通道數目。

語法

HRESULT GetMeteringChannelCount(
  [out] UINT *pnChannelCount
);

參數

[out] pnChannelCount

UINT 變數的指標,方法會將通道數目寫入其中。

傳回值

如果方法成功,它會傳回 S_OK。 如果失敗,可能的傳回碼包括但不限於下表所示的值。

傳回碼 Description
E_POINTER
參數 pnChannelCountNULL

規格需求

需求
最低支援的用戶端 Windows Vista [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器 Windows Server 2008 [傳統型應用程式 |UWP 應用程式]
目標平台 Windows
標頭 endpointvolume.h

另請參閱

IAudioMeterInformation 介面