]> git.sesse.net Git - casparcg/commit
* audio_mixer: Fixed bug where int32 -> float -> back to int32 could cause an overflo...
authorHelge Norberg <helge.norberg@svt.se>
Wed, 28 Oct 2015 16:24:21 +0000 (17:24 +0100)
committerHelge Norberg <helge.norberg@svt.se>
Wed, 28 Oct 2015 16:24:21 +0000 (17:24 +0100)
commit60ebdf70b04e380ea273fae9f8c8e19f5fc0addd
treed65b77cb85947d3e39fbdb070cb78355a73ce72c
parentb340a142396814b53b612a1b702c0cd449f5b908
* audio_mixer: Fixed bug where int32 -> float -> back to int32 could cause an overflow when the amplitude was at maximum. Changed to double (can represent all integer values of int32, which float can't). Also added graceful clipping instead of overflow support, and diagnostic for when it happens
core/mixer/audio/audio_mixer.cpp