Page 1 of 1

ASRC Custom Sample Rate

Posted: Sun Apr 03, 2022 9:20 pm
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?

Re: ASRC Custom Sample Rate

Posted: Mon Apr 04, 2022 2:30 pm
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.

Re: ASRC Custom Sample Rate

Posted: Mon Apr 04, 2022 7:44 pm
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?

Re: ASRC Custom Sample Rate

Posted: Mon Apr 04, 2022 8:02 pm
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.