I use 21571 to process audio datas, the datas format are float. But when I submit audio datas to SPORT to send datas out using adi_sport_SubmitBuffer() function, the datas need to be int32, I have some questions now.
1) Assum that I use 32bits i2s to transfer datas, what's the format in i2s data line, is it 1.31?
2) It seems like there is auto convert in SHARC cores, after I receive 1.31 datas, I just save datas in int32 buffer and then assign buffers to float variables without any function to convert 1.31 to float. Also when I transmit datas, I only submit int32 datas which is shifted from float without convert int32 to 1.31.
3) If it's 1.31 format, datas range from -1.0 to 1.0 - 2^-31, I find that when float datas out of range, it will overflow to zero rather than clip. How to avoid overflow when shift float datas to int32. Or can I directly submit float datas to SPORT?