Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: No usb audio from Teensy 3.2 to Mac

  1. #1
    Junior Member
    Join Date
    Jan 2018
    Posts
    2

    No usb audio from Teensy 3.2 to Mac

    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.

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    19,928
    You must add one non-USB input or output, even if it isn't used. See the notes in the design tool docs for the USB in & out.

    https://www.pjrc.com/teensy/gui/?info=AudioInputUSB

  3. #3
    Junior Member
    Join Date
    Jan 2018
    Posts
    2
    Great, that solved the problem! Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •