aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm/PcmVolume.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/pcm/PcmVolume.cxx')
-rw-r--r--src/pcm/PcmVolume.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcm/PcmVolume.cxx b/src/pcm/PcmVolume.cxx
index d2a3c51f3..5c0a1fbd3 100644
--- a/src/pcm/PcmVolume.cxx
+++ b/src/pcm/PcmVolume.cxx
@@ -37,7 +37,7 @@ pcm_volume_change(typename Traits::pointer_type buffer,
sample = (sample * volume + pcm_volume_dither() +
PCM_VOLUME_1S / 2)
- / PCM_VOLUME_1S;
+ >> PCM_VOLUME_BITS;
*buffer++ = PcmClamp<F, Traits>(sample);
}