I try to get my Teensy 4.1 to output audio to usb.
The following code doesn't work. Teensy appears as usb audio device on MacOS, but I can't hear any white noise when I select it's input.
The following code doesn't work. Teensy appears as usb audio device on MacOS, but I can't hear any white noise when I select it's input.
Code:
#include <Audio.h>
#include <Wire.h>
//#include <SPI.h>
//#include <SD.h>
//#include <SerialFlash.h>
AudioSynthNoiseWhite noise1; //xy=164,557AudioOutputUSB
AudioOutputUSB usb1; //xy=370,519
AudioConnection patchCord1(noise1, 0, usb1, 0);
AudioConnection patchCord2(noise1, 0, usb1, 1);
// GUItool: end automatically generated code
//used to blink the led to show that something is happening
int led=13;
void setup() {
AudioMemory(80);
delay(500);
pinMode(led, OUTPUT);
}
void loop() {
}