diff --git a/interface/src/Oscilloscope.h b/interface/src/Oscilloscope.h index 2474753cdf..ea828b8bcf 100644 --- a/interface/src/Oscilloscope.h +++ b/interface/src/Oscilloscope.h @@ -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__) */