Debian Codegraph @

android/app/jni/extern/SAASound/src/SAAEnv.h

raw
1 // Part of SAASound copyright 1998-2018 Dave Hooper <[email protected]>
2 //
3 // SAAEnv.h: interface for the CSAAEnv class.
4 //
5 //////////////////////////////////////////////////////////////////////
6
7 #ifndef SAAENV_H_INCLUDED
8 #define SAAENV_H_INCLUDED
9
10 class CSAAEnv
11 {
12 private:
13 int m_nLeftLevel, m_nRightLevel;
14 ENVDATA const * m_pEnvData;
15
16 bool m_bEnabled;
17 bool m_bInvertRightChannel;
18 BYTE m_nPhase;
19 BYTE m_nPhasePosition;
20 bool m_bEnvelopeEnded;
21 bool m_bLooping;
22 char m_nNumberOfPhases;
23 char m_nResolution;
24 bool m_bNewData;
25 BYTE m_nNextData;
26 bool m_bClockExternally;
27 static const ENVDATA cs_EnvData[8];
28
29 void Tick(void);
30 void SetLevels(void);
31 void SetNewEnvData(int nData);
32
33 public:
34 CSAAEnv();
35 ~CSAAEnv();
36
37 void InternalClock(void);
38 void ExternalClock(void);
39 void SetEnvControl(int nData); // really just a BYTE
40 int LeftLevel(void) const;
41 int RightLevel(void) const;
42 bool IsActive(void) const;
43
44 };
45
46 inline bool CSAAEnv::IsActive(void) const
47 {
48 return m_bEnabled;
49 }
50
51 #endif // SAAENV_H_INCLUDED