aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm/PcmVolume.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-12-02 09:09:19 +0100
committerMax Kellermann <max@duempel.org>2013-12-02 11:21:32 +0100
commit3a0f3eaa50c748e2a8e42f15beb4bf447fa1a87c (patch)
tree983d9a7a91a83ef81b0d67c9b98148524def796f /src/pcm/PcmVolume.cxx
parent80eb8d9e26007fb961d2bb7a41e5e3e5bf9360f1 (diff)
downloadmpd-3a0f3eaa50c748e2a8e42f15beb4bf447fa1a87c.tar.gz
mpd-3a0f3eaa50c748e2a8e42f15beb4bf447fa1a87c.tar.xz
mpd-3a0f3eaa50c748e2a8e42f15beb4bf447fa1a87c.zip
pcm/PcmUtils: use the SampleTraits library
Diffstat (limited to 'src/pcm/PcmVolume.cxx')
-rw-r--r--src/pcm/PcmVolume.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pcm/PcmVolume.cxx b/src/pcm/PcmVolume.cxx
index fafec2d60..8426fd57b 100644
--- a/src/pcm/PcmVolume.cxx
+++ b/src/pcm/PcmVolume.cxx
@@ -39,9 +39,7 @@ pcm_volume_change(typename Traits::pointer_type buffer,
PCM_VOLUME_1 / 2)
/ PCM_VOLUME_1;
- *buffer++ = PcmClamp<typename Traits::value_type,
- typename Traits::long_type,
- Traits::BITS>(sample);
+ *buffer++ = PcmClamp<F, Traits>(sample);
}
}