mirror of
https://github.com/lubosz/overte.git
synced 2025-04-25 01:23:57 +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:
|
||||
static unsigned const MAX_CHANNELS = 3;
|
||||
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();
|
||||
|
@ -33,7 +22,6 @@ public:
|
|||
volatile bool enabled;
|
||||
volatile bool inputPaused;
|
||||
|
||||
|
||||
void addSamples(unsigned ch, short const* data, unsigned n);
|
||||
|
||||
void render(int x, int y);
|
||||
|
@ -48,6 +36,15 @@ private:
|
|||
|
||||
// implementation
|
||||
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__) */
|
||||
|
|
Loading…
Reference in a new issue