mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-26 07:35:15 +02:00
Merge pull request #359 from birarda/master
rearrange member variables in Oscilloscope constructor
This commit is contained in:
commit
21f8a05baf
1 changed files with 9 additions and 5 deletions
|
@ -33,10 +33,14 @@ namespace { // everything in here only exists while compiling this .cpp file
|
||||||
|
|
||||||
|
|
||||||
Oscilloscope::Oscilloscope(int w, int h, bool isEnabled) :
|
Oscilloscope::Oscilloscope(int w, int h, bool isEnabled) :
|
||||||
_valWidth(w), _valHeight(h),
|
enabled(isEnabled),
|
||||||
_arrSamples(0l), _arrVertices(0l),
|
inputPaused(false),
|
||||||
_valLowpass(0.4f), _valDownsample(3),
|
_valWidth(w),
|
||||||
enabled(isEnabled), inputPaused(false) {
|
_valHeight(h),
|
||||||
|
_arrSamples(0l),
|
||||||
|
_arrVertices(0l),
|
||||||
|
_valLowpass(0.4f),
|
||||||
|
_valDownsample(3) {
|
||||||
|
|
||||||
// allocate enough space for the sample data and to turn it into
|
// allocate enough space for the sample data and to turn it into
|
||||||
// vertices and since they're all 'short', do so in one shot
|
// vertices and since they're all 'short', do so in one shot
|
||||||
|
|
Loading…
Reference in a new issue