Sample rate conversion 352/384K to 192K Topic is solved

Sub forums for various specialist XMOS applications. e.g. USB audio, motor control and robotics.
User avatar
akp
XCore Expert
Posts: 578
Joined: Thu Nov 26, 2015 11:47 pm

Post by akp »

It seems your input samples are 32 bit and your output are 24 bit but left shifted by 4 bits, correct?

If that's the case then my only comment is that I would right shift the input 32 bit samples by two before adding, rather than afterwards. Otherwise you could get an overflow when you add the two signed integers and that might cause a problem. You won't lose any fidelity.


View Solution
Zed1970
Active Member
Posts: 55
Joined: Tue Oct 15, 2019 10:36 am

Post by Zed1970 »

Thanks, appreciate the help. Case close!

Edit: I experienced some distortion in louder dynamic pieces of music and the >>2 first as suggested resolved it.
Post Reply