Bug correction in mult

Mult can be 32768, resulting in an overflow for int16 type which is an int between -32768 and 32767.

Changing in the line involving mult 32768 by 32767 solve this problem very easily, involving a very small loss of the amplitude precision.