From c6ef0e88879d2cd203a74cfda2a574e949486877 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 2 Dec 2013 11:45:03 +0100 Subject: pcm/Traits: add typedef "sum_type" Allow 32 bit platforms to use 32 bit instead of 64 bit for summing 24 bit samples. --- src/pcm/PcmMix.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pcm/PcmMix.cxx') 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> 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(a + b); } -- cgit v1.2.3