Hello, I got my Teensy 4.1 board and experimented a little running display and nice UIs from it, but I have decided to try out some audio.
I have an Adafruit DAC, type UDA1334A. My goal is to use this DAC with my computer, using the Teensy as a USB audio device.
The Teensy does get recognized by the computer, but I have no sound output. Here is my code:
My wiring:
https://imgur.com/a/stqtxNP (Sorry for the link, the photos didn't want to upload)
I have an Adafruit DAC, type UDA1334A. My goal is to use this DAC with my computer, using the Teensy as a USB audio device.
The Teensy does get recognized by the computer, but I have no sound output. Here is my code:
Code:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
// GUItool: begin automatically generated code
AudioInputUSB usb1; //xy=560,391
AudioOutputI2S i2s1; //xy=772,392
AudioConnection patchCord1(usb1, 0, i2s1, 0);
AudioConnection patchCord2(usb1, 1, i2s1, 1);
// GUItool: end automatically generated code
void setup() {
AudioMemory(12);
}
My wiring:
https://imgur.com/a/stqtxNP (Sorry for the link, the photos didn't want to upload)