So for a school project I need to be able to route audio from a USB sound card to I2S. More specifically, the I2S will be connected to an XMOS xCore-200 Multichannel Audio Platform. I need to write a program that will receive audio input from a USB sound card and send it to the XMOS via I2S and vice versa (receive audio via i2S from the XMOS and send it out via the USB sound card, which will have basic 3.5mm jacks for input and output). I have had no luck finding info on programming I2S on the RPi.
So first, is this even possible to do?
If so, where can I find a code manual or guide that can show me how to do this. I would prefer to program it in C++ or a similar language if possible.