diff options
author | Max Kellermann <max@duempel.org> | 2013-12-25 12:28:18 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-12-25 12:28:18 +0100 |
commit | 2a3a18a2832669eea2b56dcb44e42c0d3a7822b7 (patch) | |
tree | dca2c79201cdd521722655681de7b7cfd4433b5d /src/pcm | |
parent | 431c80f4f042bcc2d549d82b28f86c06e9b1cde6 (diff) | |
download | mpd-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.hxx | 2 |
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. |