ASRC Custom Sample Rate
-
- Member++
- Posts: 30
- Joined: Thu Feb 09, 2017 4:53 pm
ASRC Custom Sample Rate
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?
-
- XCore Expert
- Posts: 580
- Joined: Thu Nov 26, 2015 11:47 pm
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.
-
- Member++
- Posts: 30
- Joined: Thu Feb 09, 2017 4:53 pm
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?
-
- XCore Expert
- Posts: 580
- Joined: Thu Nov 26, 2015 11:47 pm
I suggest you take the SSRC code and generate your own 8:7 filters. Or 21:20 if you want 44.1 output.