aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm/PcmVolume.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/pcm/PcmVolume.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pcm/PcmVolume.cxx b/src/pcm/PcmVolume.cxx
index 8426fd57b..d2a3c51f3 100644
--- a/src/pcm/PcmVolume.cxx
+++ b/src/pcm/PcmVolume.cxx
@@ -36,8 +36,8 @@ pcm_volume_change(typename Traits::pointer_type buffer,
typename Traits::long_type sample = *buffer;
sample = (sample * volume + pcm_volume_dither() +
- PCM_VOLUME_1 / 2)
- / PCM_VOLUME_1;
+ PCM_VOLUME_1S / 2)
+ / PCM_VOLUME_1S;
*buffer++ = PcmClamp<F, Traits>(sample);
}
@@ -132,7 +132,7 @@ pcm_volume(void *buffer, size_t length,
SampleFormat format,
int volume)
{
- if (volume == PCM_VOLUME_1)
+ if (volume == PCM_VOLUME_1S)
return true;
if (volume <= 0) {