Audio Library not working?

Status
Not open for further replies.

SirTmofBates

New member
Recently I purchased the Teensy 3.6 to try out the audio library functions and after using the GUI to design an audio system and loading the program onto the Teensy, I can't seem to get it to work properly whatsoever. I feel like I'm probably missing something really obvious but maybe someone could help me with the issue.

Here's the code I'm using:
Code:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>

// GUItool: begin automatically generated code
AudioSynthWaveformSine   sine1;          //xy=517,396
AudioOutputUSB           usb1;           //xy=863,386
AudioConnection          patchCord1(sine1, 0, usb1, 0);
AudioConnection          patchCord2(sine1, 0, usb1, 1);
// GUItool: end automatically generated code

void setup() {
  sine1.amplitude(1);
  sine1.frequency(440);
}

void loop() {

}
 
You need to use AudioMemory. Open any of the examples to see how. Click File > Examples > Audio to see them.

The USB input and output also do not work stand-alone. At least one other non-USB input or output is needed. Read the right-side documentation about the USB output object.
 
Thanks for the quick reply, I was able to get it to work properly now, I'll make sure I take a look at the examples more closely as well to see more about how everything works.
 
Status
Not open for further replies.
Back
Top