Noel Borthwick [Cakewalk]
azslow3
Back to serious. How libsndfile is going to work is controlled by "sf_command", including clipping processing, normalization, etc. And that should be set by Sonar.
We don't use sf_command to set any of the obscure LIBSNDFILE options today. We only use it to query properties.
They apparently have a SFC_SET_DITHER_ON_WRITE now for which there is zero documentation :)
The params for it show some rudimentary dither support.
Today most likely the default LIBSNDFILE behavior is to truncate data which is likely whats causing the noise.
I put the latest libsndfile into platinum, no changes.
From my observations, the problem is that it does not truncate data by default. At least not for FLAC. So:
* export to WAV 24 bit - digital cliping
* export to FLAC 16bit (in dialog) - probably cliped in Sonar during dithering
* export to FLAC 24bit (in dialog) - no digital cliping but destroyed waveform at random (but reproducible) places
May be SFC_SET_NORM and/or SGC_SET_CLIPPING explicitly can solve that?
PS I want repeat that the effect is always reproducible for me. Not that I am ever going to export clipping projects into FLAC, but it is better to solve that to avoid confusion
PSPS exporting to 24 WAV, so truncated data, is as I understand "desired" OP effect. The noise produced by the bug is completely different kind...