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

Thread: dacs output don't play on Teensy3.5

  1. #1
    Senior Member
    Join Date
    Dec 2014

    dacs output don't play on Teensy3.5

    I have the simplest possible sketch, compiling on Ubuntu using the Arduino IDE and a Teensyduino install I downloaded just a few days ago.

    #include <Audio.h>
    // GUItool: begin automatically generated code
    AudioSynthWaveform       waveform1;      //xy=226,276
    AudioOutputAnalogStereo  dacs1;          //xy=423,277
    AudioConnection          patchCord1(waveform1, 0, dacs1, 0);
    AudioConnection          patchCord2(waveform1, 0, dacs1, 1);
    // GUItool: end automatically generated code
    void setup() {
      // put your setup code here, to run once:
      waveform1.begin(1.0f, 400.0f, WAVEFORM_SAWTOOTH);
      dacs1.begin(); // <-- hangs in here
    void loop() {
      // put your main code here, to run repeatedly:
    When I run this, the DACs just stay fixed at about 0.8V output, according to my oscilloscope. The signal doesn't wiggle at all.

    What am I missing?

    More debugging: The sketch hangs inside dacs1.begin() (found by twiddling a LED before and after.)
    Taking out that call makes the sketch run through loop(), but still no sound output.
    Last edited by jwatte; 09-18-2017 at 01:29 AM.

  2. #2
    Senior Member
    Join Date
    Dec 2014
    Solution: The problem was that I hadn't called AudioMemory(X) in setup().

Posting Permissions

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