mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 05:17:08 +02:00
puts private members to the bottom of the class definition
This commit is contained in:
parent
c8c4b8fda5
commit
539e69cef0
1 changed files with 9 additions and 12 deletions
|
@ -15,17 +15,6 @@ class Oscilloscope {
|
||||||
public:
|
public:
|
||||||
static unsigned const MAX_CHANNELS = 3;
|
static unsigned const MAX_CHANNELS = 3;
|
||||||
static unsigned const MAX_SAMPLES = 4096; // per channel
|
static unsigned const MAX_SAMPLES = 4096; // per channel
|
||||||
private:
|
|
||||||
unsigned _valWidth;
|
|
||||||
unsigned _valHeight;
|
|
||||||
short* _arrSamples;
|
|
||||||
short* _arrVertices;
|
|
||||||
unsigned _arrWritePos[MAX_CHANNELS];
|
|
||||||
|
|
||||||
float _valLowpass;
|
|
||||||
unsigned _valDownsample;
|
|
||||||
|
|
||||||
public:
|
|
||||||
|
|
||||||
Oscilloscope(int width, int height, bool isEnabled);
|
Oscilloscope(int width, int height, bool isEnabled);
|
||||||
~Oscilloscope();
|
~Oscilloscope();
|
||||||
|
@ -33,7 +22,6 @@ public:
|
||||||
volatile bool enabled;
|
volatile bool enabled;
|
||||||
volatile bool inputPaused;
|
volatile bool inputPaused;
|
||||||
|
|
||||||
|
|
||||||
void addSamples(unsigned ch, short const* data, unsigned n);
|
void addSamples(unsigned ch, short const* data, unsigned n);
|
||||||
|
|
||||||
void render(int x, int y);
|
void render(int x, int y);
|
||||||
|
@ -48,6 +36,15 @@ private:
|
||||||
|
|
||||||
// implementation
|
// implementation
|
||||||
inline short* bufferBase(int i, int channel);
|
inline short* bufferBase(int i, int channel);
|
||||||
|
|
||||||
|
unsigned _valWidth;
|
||||||
|
unsigned _valHeight;
|
||||||
|
short* _arrSamples;
|
||||||
|
short* _arrVertices;
|
||||||
|
unsigned _arrWritePos[MAX_CHANNELS];
|
||||||
|
|
||||||
|
float _valLowpass;
|
||||||
|
unsigned _valDownsample;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* defined(__interface__oscilloscope__) */
|
#endif /* defined(__interface__oscilloscope__) */
|
||||||
|
|
Loading…
Reference in a new issue