freeswitch / spandsp

SpanDSP is a low-level signal processing library that modulates and demodulates signals commonly used in telephony, such as the "noise" generated by a fax modem or DTMF touchpad.
Other
144 stars 118 forks source link

two small fixes #14

Open thomas-roos opened 3 years ago

thomas-roos commented 3 years ago

fix G722 saturation

fix crosscompile - looking in host dirs

coppice-git commented 3 years ago

The saturation patch should be harmless, but I'm interested in why saturation is needed at that point. I remember going through this when originally writing the code, and deciding it could never overflow at that point. Is there some example data which causes overflow at this point in the code? It might highlight another issue which leads to the overflow.

thomas-roos commented 3 years ago

As I remember since this patch was created years ago, this fixes a sign error while sine play. Means sign change from plus max to minus max as I remember.