ASRC Custom Sample Rate

Sub forums for various specialist XMOS applications. e.g. USB audio, motor control and robotics.
Post Reply
kevpatt
Member++
Posts: 30
Joined: Thu Feb 09, 2017 4:53 pm

ASRC Custom Sample Rate

Post by kevpatt »

I have an application where I need to convert from a custom sample rate (42 kHz) to a standard sample rate (either 44.1 kHz or 48 kHz). Can I use the SRC library to do this? 44.1/42 is about 5%, which is more than the 10,000 ppm limit specified for ASRC. Maybe this can be accomplished by modifying the SRC code a bit?


User avatar
akp
XCore Expert
Posts: 578
Joined: Thu Nov 26, 2015 11:47 pm

Post by akp »

Are the two sources truly asynchronous? If not then you might be able to get synchronous sample rate conversion to work. 8/7 to get 48kHz.
kevpatt
Member++
Posts: 30
Joined: Thu Feb 09, 2017 4:53 pm

Post by kevpatt »

The input is 42 kHz and the output will be generated at 48 kHz. The output clock can be derived from / driven by the input at 8/7, so synchronous is fine. But I don't see any option to put a ratio like 8/7 in the SRC library... am I missing something?
User avatar
akp
XCore Expert
Posts: 578
Joined: Thu Nov 26, 2015 11:47 pm

Post by akp »

I suggest you take the SSRC code and generate your own 8:7 filters. Or 21:20 if you want 44.1 output.
Post Reply