But my master file is a 64bit wav file so I have to turn on 64bit engine, otherwise.... truncate to 32bit before dithering and noise shaping?
And then that's even more stranger........ should it process all things and truncate in internal PCM streams before sending to libsndfile/libflac? Can't imagine about doing dithering and truncation just inside libsndfile/libflac........
In common sense, that should be: 64bit file -> all pre-processes -> re-sampling if need -> dithering + noise shaping -> truncate to 24bit PCM -> send 24bit PCM samples into libsndfile/libflac module
I can't imagine if libsndfile/libflac or mega-nerd they get enough funds to pay the patent royalty of luxuriously expensive POW-R dither. Only Cakewalk and Avid Pro Tools and other large DAW systems paid. Even Sound Forge has not paid for POW-R.
So, if like what THambrecht said, there're something to do with 64bit engine, before truncation and sending into libsndfile/libflac, then there should be something wrong inside SONAR somewhere else, but totally nothing to do with libsndfile or libflac...... only 24bit samples are sent to libsndfile/libflac but not any 64bit FP samples.....