pcm/Traits: use 32 bit integer for S8 long_type
16 bit is not enough for volume calculations.
This commit is contained in:
parent
431c80f4f0
commit
2a3a18a283
@ -63,7 +63,7 @@ struct SampleTraits<SampleFormat::S8> {
|
|||||||
* arithmetic without risking an (integer) overflow or
|
* arithmetic without risking an (integer) overflow or
|
||||||
* (floating point) precision loss.
|
* (floating point) precision loss.
|
||||||
*/
|
*/
|
||||||
typedef int_least16_t long_type;
|
typedef int_least32_t long_type;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The size of one sample in bytes.
|
* The size of one sample in bytes.
|
||||||
|
Loading…
Reference in New Issue
Block a user