When I run this program with the USB type set to Serial/MIDI/Audio, there is silence. I change to USB type "Audio" and it works well. T4, OS is Linux Mint, Teensyduino 1.53. Is it possible to have Serial and Audio?
People like pictures, so this shows just how easy it is to get good quality audio from a teensy. Toslink module is a few dollars from ebay.
Code:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
// GUItool: begin automatically generated code
AudioInputUSB usb1; //xy=143,207
AudioOutputSPDIF3 spdif3; //xy=502,202
AudioConnection patchCord1(usb1, 0, spdif3, 0);
AudioConnection patchCord2(usb1, 1, spdif3, 1);
// GUItool: end automatically generated code
void setup() {
AudioMemory(10);
}
void loop() {
}
People like pictures, so this shows just how easy it is to get good quality audio from a teensy. Toslink module is a few dollars from ebay.