downmixing difference between float and fixed-point (DFT - stereo)
# Basic info <!--- Add commit SHA used to reproduce --> - Encoder and Decoder (float): 311956f3 - Encoder (fixed): 7847d456 # Bug description While investigating #1125 When comparing the down mixed signal an the encoder just before entering the front Pre-processing, overall the difference signal between float and fixed-point is uniform (fig. 1), but sometime it exhibits some peak (fig. 2) and sometime some frequency are missing (Fig 3). On the 3 figures below, from top to bottom: - floating point input_DMX - fixed-point input_DMX (unscaled to float) - difference - Q_inp[0] - Spectrum on the 3rd figure only (red : float, blue : fix-point, green : diff) Fig 1 : difference in the range of ±50, uniformly distributed ![image](/uploads/16849b8a5dc004477c20a22bb25794c6/image.png) Fig 2 : Peak appear here and there, often after a change in scaling but not all the time related to scaling ![image](/uploads/194f4a7b2afd3434a40df91d4d8784cf/image.png) Fig 3 : Here, we can see on the spectrum that the fixed point is not able to match the energy of the the low frequency toned, difference signal ± 1600 ![image](/uploads/de80894657fd80d4d49d6422b0fd017a/image.png) tagging @multrus , @fotopoulou as this touch DFT stereo # Ways to reproduce You can obtain check it by running the following command for both float and fix and output the dmx signal as done in the floating point around lines 460 of ivas_cpe_enc.c (here I used input32_fx for the fixed point output) IVAS_cod -STEREO 1 16400 48.\ivas-codec\scripts\testv\stvST48c.wav bit16400 <!-- Commandline or script --> ```bash ``` <!--- Below are labels that will be added but are not shown in description. This is a template to help fill them. Add further information to the first row and remove and add labels as necessary. -->
issue