Demolishun
Well-known member
I am trying to compile the simple class definition described on this page:
https://www.pjrc.com/teensy/td_libs_AudioNewObjects.html
It will not compile. I get this (verbose turned on):
One thing I do not understand is IF I should download the audio library from Github or WHERE to install that library if I do. I did update the cores files for Teensy3.1 though. So all of those files should be the latest, but I get the same error. I look at the AudioStream file and I don't see any obvious syntax errors. The arm compiler and the like might be a bit older like a couple/three months old.
Edit:
Sorry, I am attempting this:
Mine looks like this:
https://www.pjrc.com/teensy/td_libs_AudioNewObjects.html
It will not compile. I get this (verbose turned on):
Code:
C:\Arduino-1.0.5\hardware\tools\arm-none-eabi\bin\arm-none-eabi-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mcpu=cortex-m4 -DF_CPU=96000000 -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -mthumb -nostdlib -D__MK20DX256__ -DTEENSYDUINO=118 -fno-rtti -felide-constructors -std=gnu++0x -DUSB_SERIAL -DLAYOUT_US_ENGLISH -IC:\Arduino-1.0.5\hardware\teensy\cores\teensy3 C:\Users\DEMOLI~1\AppData\Local\Temp\build4180167903440885784.tmp\teensystim1.cpp -o C:\Users\DEMOLI~1\AppData\Local\Temp\build4180167903440885784.tmp\teensystim1.cpp.o
teensystim1.ino: In constructor 'AudioOutputPFM::AudioOutputPFM()':
teensystim1:20: error: expected '{' at end of input
One thing I do not understand is IF I should download the audio library from Github or WHERE to install that library if I do. I did update the cores files for Teensy3.1 though. So all of those files should be the latest, but I get the same error. I look at the AudioStream file and I don't see any obvious syntax errors. The arm compiler and the like might be a bit older like a couple/three months old.
Edit:
Sorry, I am attempting this:
Code:
#include "AudioStream.h"
class AudioEffectTemplate : public AudioStream
{
public:
AudioEffectTemplate() : AudioStream(1, inputQueueArray);
virtual void update(void);
private:
audio_block_t *inputQueueArray[1];
};
Code:
#include "AudioStream.h"
class AudioOutputPFM : public AudioStream
{
private:
audio_block_t *inputQueueArray[1];
public:
AudioOutputPFM() : AudioStream(1, inputQueueArray);
virtual void update(void);
};
Last edited: