From 2a3a18a2832669eea2b56dcb44e42c0d3a7822b7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 25 Dec 2013 12:28:18 +0100 Subject: [PATCH] pcm/Traits: use 32 bit integer for S8 long_type 16 bit is not enough for volume calculations. --- src/pcm/Traits.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pcm/Traits.hxx b/src/pcm/Traits.hxx index 4e68191f6..ac1ac532d 100644 --- a/src/pcm/Traits.hxx +++ b/src/pcm/Traits.hxx @@ -63,7 +63,7 @@ struct SampleTraits { * arithmetic without risking an (integer) overflow or * (floating point) precision loss. */ - typedef int_least16_t long_type; + typedef int_least32_t long_type; /** * The size of one sample in bytes.