aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-12-25 12:28:18 +0100
committerMax Kellermann <max@duempel.org>2013-12-25 12:28:18 +0100
commit2a3a18a2832669eea2b56dcb44e42c0d3a7822b7 (patch)
treedca2c79201cdd521722655681de7b7cfd4433b5d /src/pcm
parent431c80f4f042bcc2d549d82b28f86c06e9b1cde6 (diff)
downloadmpd-2a3a18a2832669eea2b56dcb44e42c0d3a7822b7.tar.gz
mpd-2a3a18a2832669eea2b56dcb44e42c0d3a7822b7.tar.xz
mpd-2a3a18a2832669eea2b56dcb44e42c0d3a7822b7.zip
pcm/Traits: use 32 bit integer for S8 long_type
16 bit is not enough for volume calculations.
Diffstat (limited to 'src/pcm')
-rw-r--r--src/pcm/Traits.hxx2
1 files changed, 1 insertions, 1 deletions
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<SampleFormat::S8> {
* 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.