How to change T4.x USB-audio sample rate?

markkimball

Active member
I'm working on a SPDIF to USB-audio format converter using a Teensy 4.0. The SPDIF data stream is coming from a CD-A player at 48KSPS, not 44.1KSPS and that's my problem. I really don't want to re-digitize the analog audio coming out of the player, because I'm using an RPi 5+ DSP S/W to equalize my speakers and listening room. It would be much cleaner to just process the digital data that's coming straight out of the player's SPDIF output port.

I did find a github repository (https://github.com/alex6679/teensy-4-usbAudio/tree/main/changedCorefiles) that looks like it might work but the installation directions are for Windows, not linux (which I'm using). The other problem is that the replacement config files don't appear to be compatible with Arduino 2.x -- the github config files are .txt and apparently 2.x no longer uses text files. It uses .yml and .json files.

Does anyone have any experience/words of wisdom on how to install the config files in Arduino 2.x running on a linux machine? Or edit the existing ones?
 
I found a solution that doesn't require changing the audio system's sample rate. The current audio library includes an asynchronous SPDIF input module that can resample the 48KSPS data.

It looks like the format conversion + resamplling will only require a few lines of user-generated code. Hopefully.....
 
Back
Top