Hi, I'm having trouble sending audio from my Teensy 3.2 to my Mac. This is my code, very simple, but I feel that I'm missing something basic:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
AudioOutputUSB usb1;
AudioInputUSB usb2;
AudioSynthWaveform waveform1;
AudioConnection patchCord1(waveform1, 0, usb1, 0);
AudioConnection patchCord2(waveform1, 0, usb1, 1);
void setup() {
AudioMemory(10);
waveform1.pulseWidth(0.5);
waveform1.begin(0.4, 220, WAVEFORM_PULSE);
}
void loop() {
}
I have selected Tools->USB->Audio. The Teensy show up as a soundcard, but there seems to be no audio when I look at the VU meter on the System Preferences. Also streaming into SuperCollider there seems to be no sound coming from the Teensy. I don't need an audio adaptor to make this work, right? OS X is 10.10.5, Teensyduino is 1.40.
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
AudioOutputUSB usb1;
AudioInputUSB usb2;
AudioSynthWaveform waveform1;
AudioConnection patchCord1(waveform1, 0, usb1, 0);
AudioConnection patchCord2(waveform1, 0, usb1, 1);
void setup() {
AudioMemory(10);
waveform1.pulseWidth(0.5);
waveform1.begin(0.4, 220, WAVEFORM_PULSE);
}
void loop() {
}
I have selected Tools->USB->Audio. The Teensy show up as a soundcard, but there seems to be no audio when I look at the VU meter on the System Preferences. Also streaming into SuperCollider there seems to be no sound coming from the Teensy. I don't need an audio adaptor to make this work, right? OS X is 10.10.5, Teensyduino is 1.40.