mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 22:35:14 +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) :
|
||||
_valWidth(w), _valHeight(h),
|
||||
_arrSamples(0l), _arrVertices(0l),
|
||||
_valLowpass(0.4f), _valDownsample(3),
|
||||
enabled(isEnabled), inputPaused(false) {
|
||||
enabled(isEnabled),
|
||||
inputPaused(false),
|
||||
_valWidth(w),
|
||||
_valHeight(h),
|
||||
_arrSamples(0l),
|
||||
_arrVertices(0l),
|
||||
_valLowpass(0.4f),
|
||||
_valDownsample(3) {
|
||||
|
||||
// allocate enough space for the sample data and to turn it into
|
||||
// vertices and since they're all 'short', do so in one shot
|
||||
|
|
Loading…
Reference in a new issue