Commit 2a3a18a2 authored by Max Kellermann's avatar Max Kellermann

pcm/Traits: use 32 bit integer for S8 long_type

16 bit is not enough for volume calculations.
parent 431c80f4
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment