aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm/PcmMix.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-12-02 11:45:03 +0100
committerMax Kellermann <max@duempel.org>2013-12-02 11:48:10 +0100
commitc6ef0e88879d2cd203a74cfda2a574e949486877 (patch)
tree8c20019846a355f23c3a6bf9d7c0e48e1fdb5ea3 /src/pcm/PcmMix.cxx
parentf761d583b579e4bdfe3013b52a46a76a8f31abf8 (diff)
downloadmpd-c6ef0e88879d2cd203a74cfda2a574e949486877.tar.gz
mpd-c6ef0e88879d2cd203a74cfda2a574e949486877.tar.xz
mpd-c6ef0e88879d2cd203a74cfda2a574e949486877.zip
pcm/Traits: add typedef "sum_type"
Allow 32 bit platforms to use 32 bit instead of 64 bit for summing 24 bit samples.
Diffstat (limited to 'src/pcm/PcmMix.cxx')
-rw-r--r--src/pcm/PcmMix.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcm/PcmMix.cxx b/src/pcm/PcmMix.cxx
index 6a1c40db9..fab2d8154 100644
--- a/src/pcm/PcmMix.cxx
+++ b/src/pcm/PcmMix.cxx
@@ -125,7 +125,7 @@ template<SampleFormat F, class Traits=SampleTraits<F>>
static typename Traits::value_type
PcmAdd(typename Traits::value_type _a, typename Traits::value_type _b)
{
- typename Traits::long_type a(_a), b(_b);
+ typename Traits::sum_type a(_a), b(_b);
return PcmClamp<F, Traits>(a + b);
}