summaryrefslogtreecommitdiff
path: root/src/soundplayer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/soundplayer.cc')
-rw-r--r--src/soundplayer.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/soundplayer.cc b/src/soundplayer.cc
index d24eec5..319b11a 100644
--- a/src/soundplayer.cc
+++ b/src/soundplayer.cc
@@ -92,11 +92,7 @@ void SoundPlayer::run()
goto nextitem;
}
- //while(std::abs(_sf[i] + item.samples[item.pos] * scale) > 1.0)
- //{
- // scale *= 0.999999;
- //}
- scale = 1.0 / active.size();
+ scale = std::min(scale, 1.0 / active.size());
_sf[i] += item.samples[item.pos] * scale;
item.pos++;