PDA

View Full Version : AudioInputUSB and AudioOutputUSB does not name a type



hang
06-13-2016, 01:20 PM
Hello,

I'm using the teensy3.2 and the audio adaptor for it.
Thanks to the very powerful audio library, I found the USB function in Audio System Design Tool.
In this GUI, they said the example of them are in File > Examples > Audio > HardwareTesting > PassThroughUSB
and another example is File > Examples > Audio > HardwareTesting > WavFilePlayerUSB
But these two examples both have the error when using them.
The error message are below:


Arduino: 1.6.8 (Windows 10), TD: 1.28, Board: "Teensy 3.2 / 3.1, Serial, 96 MHz optimized (overclock), US English"

Build options changed, rebuilding all
PassThroughUSB:9: error: 'AudioInputUSB' does not name a type
AudioInputUSB usb1; //xy=200,69

^

PassThroughUSB:11: error: 'usb1' was not declared in this scope
AudioConnection patchCord1(usb1, 0, i2s1, 0);

^

PassThroughUSB:12: error: 'usb1' was not declared in this scope
AudioConnection patchCord2(usb1, 1, i2s1, 1);

^

'AudioInputUSB' does not name a type


It seems that there are some problems with my library?
I'm using arduino 1.6.8, and teensyduino 1.28

And also there's another problem is that I didn't find "Audio" as the "USB type" in this way "Tools > USB Type".

Thanks!

WMXZ
06-13-2016, 02:34 PM
......

PassThroughUSB:9: error: 'AudioInputUSB' does not name a type
I'm using arduino 1.6.8, and teensyduino 1.28


Maybe you could first upgrade to TD1.29 (b2) which has introduced USB Audio

hang
06-13-2016, 02:51 PM
Maybe you could first upgrade to TD1.29 (b2) which has introduced USB Audio

Thanks!

I've already solve the problem by another repo you replied:

https://forum.pjrc.com/threads/24309-USB-Audio-for-Teensy-3-0/page3

with changing the cores and the boards.txt

Thank you.