Hi there,
Following my previous post, I did some tests and found a minimal non-working example which I provide here.
The setup is as follow:
I record the sound on Audacity, and get what is expected:

Now, I switch from AudioInputI2S to AudioInputI2Sslave.
I play some mp3 on the Rpi3 in order to provide I2S master signal.
I record the sound on Audacity, and this is what I get:

(Note that I don't even use the sound coming from the pi, by just changing the type of i2s1 the usb tranfer gets messed up.)
Can someone help me with that?
Thanks!
Following my previous post, I did some tests and found a minimal non-working example which I provide here.
The setup is as follow:
- Rpi3 (which provides I2S signal to the teensy)
- Teensy 4.0
- USB cable between the Teensy and my PC
- Audacity on PC to record audio
Code:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
AudioInputI2S i2s1; // GOOD output
//AudioInputI2Sslave i2s1; // BAD output
AudioSynthWaveformSine sine1;
AudioOutputUSB usb1;
AudioConnection patchCord1(sine1, 0, usb1, 0);
AudioConnection patchCord2(sine1, 0, usb1, 1);
void setup() {
AudioMemory(20);
sine1.frequency(1000);
sine1.amplitude(0.7);
}
void loop(){
}
I record the sound on Audacity, and get what is expected:

Now, I switch from AudioInputI2S to AudioInputI2Sslave.
I play some mp3 on the Rpi3 in order to provide I2S master signal.
I record the sound on Audacity, and this is what I get:

(Note that I don't even use the sound coming from the pi, by just changing the type of i2s1 the usb tranfer gets messed up.)
Can someone help me with that?
Thanks!