Maybe we should open a separate thread with this phenomenon?
* Windows 10, Arduino 1.8.13 TD 1.53
* Teensy 4.0 with Teensy audio shield REV D
* USB - Audio in / I2S Audio out
* Compiling with USB-type "Audio" does not give any audio output from PC to Teensy
* Compiling with USB-type "Serial + MIDI + Audio" does give perfect audio output (headphone out on the Audio shield) from PC to Teensy with the very same sketch
Code:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
AudioInputUSB usb1; //xy=200,69 (must set Tools > USB Type to Audio) --> DOES NOT WORK, HAVE TO SET USB TYPE TO SERIAL + MIDI + AUDIO IN ORDER TO WORK PROPERLY: WHY ?
AudioOutputI2S i2s1; //xy=365,94
AudioConnection patchCord1(usb1, 0, i2s1, 0);
AudioConnection patchCord2(usb1, 1, i2s1, 1);
AudioControlSGTL5000 sgtl5000_1; //xy=302,184
void setup() {
AudioMemory(12);
sgtl5000_1.enable();
sgtl5000_1.volume(0.6);
}
void loop() {
delay(100);
}