Oh yes, you are right, I have misread the docs. You proposed solution is correct.
Reading it again, I noticed the dither topic.
Could you check if dithering is enabled on write? This is required to remove the quantization noise from the recorded fixed point samples.
I have found noting in the API docs about it. Only the test code: https://github.com/erikd/libsndfile/blob/2fcf531ac940829cf350f86786fcff5160a32143/tests/dither_test.c#L157
Oh yes, you are right, I have misread the docs. You proposed solution is correct.
Reading it again, I noticed the dither topic.
Could you check if dithering is enabled on write?
This is required to remove the quantization noise from the recorded fixed point samples.
I have found noting in the API docs about it. Only the test code: /github. com/erikd/ libsndfile/ blob/2fcf531ac9 40829cf350f8678 6fcff5160a32143 /tests/ dither_ test.c# L157
https:/