-
Notifications
You must be signed in to change notification settings - Fork 7
/
hw.h
49 lines (39 loc) · 1.38 KB
/
hw.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
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 __HW_H_
#define __HW_H_
//=============================================================================
// Defines
//=============================================================================
// BUGBUG we should dynamically allocate this...
#define MAX_TOPOLOGY_NODES 20
//=============================================================================
// Classes
//=============================================================================
///////////////////////////////////////////////////////////////////////////////
// CRTSDAudioHW
// This class represents virtual MSVAD HW. An array representing volume
// registers and mute registers.
class CRTSDAudioHW {
protected:
BOOL m_MuteControls[MAX_TOPOLOGY_NODES];
LONG m_VolumeControls[MAX_TOPOLOGY_NODES];
ULONG m_ulMux; // Mux selection
public:
CRTSDAudioHW();
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);
};
typedef CRTSDAudioHW *PCRTSDAudioHW;
#endif