commit | 6dd88c53cb1614ee2d3106a3bfc510d944cfe7c1 | [log] [tgz] |
---|---|---|
author | Manuel Vögele <develop@manuel-voegele.de> | Sat Sep 26 09:30:08 2020 +0200 |
committer | Manuel Vögele <develop@manuel-voegele.de> | Sat Sep 26 09:30:08 2020 +0200 |
tree | 38ca731d8d6c073fe060d6faa0b903c6ffd713e4 | |
parent | fd138c21fb5f6f9ec8b5ad06a4c56f811bbd9adc [diff] |
audio: fix popping sounds caused by signed/unsigned conversion When converting audio from signed to unsigned values of vice-versa the silence value chosen by SDL was the value of the device, not of the stream that the data was being put into. After conversion this would lead to a very high or low value, making the speaker jump to a extreme positon, leading to an audible noise whenever creating, destroying or playing scilence on a device that reqired such conversion.