hw.h
来自「在微软例子下实现的虚拟声卡,实现了各种接口,是学习的一个好例子」· C头文件 代码 · 共 80 行
H
80 行
/*++
Copyright (c) 1997-2000 Microsoft Corporation All Rights Reserved
Module Name:
hw.h
Abstract:
Declaration of MSVAD HW class.
MSVAD HW has an array for storing mixer and volume settings
for the topology.
--*/
#ifndef _MSVAD_HW_H_
#define _MSVAD_HW_H_
//=============================================================================
// Defines
//=============================================================================
// BUGBUG we should dynamically allocate this...
#define MAX_TOPOLOGY_NODES 20
//=============================================================================
// Classes
//=============================================================================
///////////////////////////////////////////////////////////////////////////////
// CMSVADHW
// This class represents virtual MSVAD HW. An array representing volume
// registers and mute registers.
class CMSVADHW
{
public:
protected:
BOOL m_MuteControls[MAX_TOPOLOGY_NODES];
LONG m_VolumeControls[MAX_TOPOLOGY_NODES];
ULONG m_ulMux; // Mux selection
private:
public:
CMSVADHW();
void MixerReset();
BOOL GetMixerMute
(
IN ULONG ulNode
);
void SetMixerMute
(
IN ULONG ulNode,
IN BOOL fMute
);
ULONG GetMixerMux();
void SetMixerMux
(
IN ULONG ulNode
);
LONG GetMixerVolume
(
IN ULONG ulNode,
IN LONG lChannel
);
void SetMixerVolume
(
IN ULONG ulNode,
IN LONG lChannel,
IN LONG lVolume
);
protected:
private:
};
typedef CMSVADHW *PCMSVADHW;
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?