mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 08:53:10 +02:00
MovingPercentile moved else to same line as }
This commit is contained in:
parent
0da6374e19
commit
5251057ed6
1 changed files with 1 additions and 2 deletions
|
@ -34,8 +34,7 @@ void MovingPercentile::updatePercentile(float sample) {
|
||||||
// update _indexOfPercentile
|
// update _indexOfPercentile
|
||||||
float index = _percentile * (float)(_samplesSorted.size() - 1);
|
float index = _percentile * (float)(_samplesSorted.size() - 1);
|
||||||
_indexOfPercentile = (int)(index + 0.5f); // round to int
|
_indexOfPercentile = (int)(index + 0.5f); // round to int
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
// find index of sample with id = _newSampleId and replace it with new sample
|
// find index of sample with id = _newSampleId and replace it with new sample
|
||||||
newSampleIndex = _sampleIds.indexOf(_newSampleId);
|
newSampleIndex = _sampleIds.indexOf(_newSampleId);
|
||||||
_samplesSorted[newSampleIndex] = sample;
|
_samplesSorted[newSampleIndex] = sample;
|
||||||
|
|
Loading…
Reference in a new issue