pcm/Traits: add typedef "sum_type"
Allow 32 bit platforms to use 32 bit instead of 64 bit for summing 24 bit samples.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user