IMiniportAudioEngineNode::GetDeviceChannelCount 方法 (portcls.h)
取得音訊裝置所支援通道數目的計數。
語法
NTSTATUS GetDeviceChannelCount(
[in] ULONG ulNodeId,
[in] eChannelTargetType targetType,
[out] UINT32 *pulChannelCount
);
參數
[in] ulNodeId
表示音訊裝置之節點的標識碼。
[in] targetType
eChannelTargetType 列舉值,指定通道中目標節點的類型。 例如,可能有 Volume、Mute 或 PeakMeter 節點。
[out] pulChannelCount
音訊裝置支援的通道數目。
傳回值
如果呼叫成功,GetDeviceChannelCount 會傳回S_OK。 否則,方法
會傳回適當的錯誤碼。
要求
要求 | 價值 |
---|---|
最低支援的用戶端 | Windows 8 |
支援的最低伺服器 | Windows Server 2012 |
目標平臺 | 普遍 |
標頭 | portcls.h |