pcm/Traits: use 32 bit integer for S8 long_type

16 bit is not enough for volume calculations.
This commit is contained in:
Max Kellermann 2013-12-25 12:28:18 +01:00
parent 431c80f4f0
commit 2a3a18a283

View File

@ -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.