Hi there, I get the following error when running the sample code in the arduino IDE, any suggestions?
HTML Code:
Arduino: 1.8.9 (Mac OS X), TD: 1.47, Board: "Teensy 3.2 / 3.1, Serial, 96 MHz (overclock), Faster, US English" WARNING: library Audio claims to run on (sam) architecture(s) and may be incompatible with your current board which runs on (avr) architecture(s). In file included from /Users/jeremysykes/Desktop/euroshield/samples/1010VCO/1010VCO.ino:1:0: /Users/jeremysykes/Documents/Arduino/libraries/Audio/src/DAC.h:21:16: error: expected ')' before '*' token DACClass(Dacc *_dac, uint32_t _dacId, IRQn_Type _isrId) : ^ /Users/jeremysykes/Documents/Arduino/libraries/Audio/src/DAC.h:35:2: error: 'Dacc' does not name a type Dacc *dac; ^ /Users/jeremysykes/Documents/Arduino/libraries/Audio/src/DAC.h:37:2: error: 'IRQn_Type' does not name a type IRQn_Type isrId; ^ /Users/jeremysykes/Documents/Arduino/libraries/Audio/src/DAC.h: In member function 'void DACClass::enableInterrupts()': /Users/jeremysykes/Documents/Arduino/libraries/Audio/src/DAC.h:31:44: error: 'isrId' was not declared in this scope void enableInterrupts() { NVIC_EnableIRQ(isrId); }; ^ /Users/jeremysykes/Documents/Arduino/libraries/Audio/src/DAC.h:31:49: error: 'NVIC_EnableIRQ' was not declared in this scope void enableInterrupts() { NVIC_EnableIRQ(isrId); }; ^ /Users/jeremysykes/Documents/Arduino/libraries/Audio/src/DAC.h: In member function 'void DACClass::disableInterrupts()': /Users/jeremysykes/Documents/Arduino/libraries/Audio/src/DAC.h:32:45: error: 'isrId' was not declared in this scope void disableInterrupts() { NVIC_DisableIRQ(isrId); }; ^ /Users/jeremysykes/Documents/Arduino/libraries/Audio/src/DAC.h:32:50: error: 'NVIC_DisableIRQ' was not declared in this scope void disableInterrupts() { NVIC_DisableIRQ(isrId); }; ^ In file included from /Users/jeremysykes/Desktop/euroshield/samples/1010VCO/1010VCO.ino:2:0: /Users/jeremysykes/Documents/Arduino/libraries/Audio/src/Audio.h: In member function 'virtual size_t AudioClass::write(uint8_t)': /Users/jeremysykes/Documents/Arduino/libraries/Audio/src/Audio.h:25:82: warning: no return statement in function returning non-void [-Wreturn-type] virtual size_t write(uint8_t c) { /* not implemented */ }; ^ /Users/jeremysykes/Desktop/euroshield/samples/1010VCO/1010VCO.ino: At global scope: 1010VCO:26: error: 'AudioInputI2S' does not name a type AudioInputI2S i2s1; //xy=195,187 ^ 1010VCO:27: error: 'AudioAnalyzePeak' does not name a type AudioAnalyzePeak peak1; //xy=367,171 ^ 1010VCO:28: error: 'AudioAnalyzePeak' does not name a type AudioAnalyzePeak peak2; //xy=367,206 ^ 1010VCO:29: error: 'AudioSynthWaveform' does not name a type AudioSynthWaveform waveform1; //xy=557,164 ^ 1010VCO:30: error: 'AudioSynthWaveform' does not name a type AudioSynthWaveform waveform2; //xy=559,205 ^ 1010VCO:31: error: 'AudioOutputI2S' does not name a type AudioOutputI2S i2s2; //xy=795,174 ^ 1010VCO:32: error: 'AudioConnection' does not name a type AudioConnection patchCord1(i2s1, 0, peak1, 0); ^ 1010VCO:33: error: 'AudioConnection' does not name a type AudioConnection patchCord2(i2s1, 1, peak2, 0); ^ 1010VCO:34: error: 'AudioConnection' does not name a type AudioConnection patchCord3(waveform1, 0, i2s2, 0); ^ 1010VCO:35: error: 'AudioConnection' does not name a type AudioConnection patchCord4(waveform2, 0, i2s2, 1); ^ 1010VCO:36: error: 'AudioControlSGTL5000' does not name a type AudioControlSGTL5000 sgtl5000_1; //xy=246,330 ^ 1010VCO: In function 'void setup()': 1010VCO:50: error: 'AudioMemory' was not declared in this scope AudioMemory(12); ^ 1010VCO:53: error: 'sgtl5000_1' was not declared in this scope sgtl5000_1.enable(); ^ 1010VCO:54: error: 'AUDIO_INPUT_LINEIN' was not declared in this scope sgtl5000_1.inputSelect(AUDIO_INPUT_LINEIN); ^ 1010VCO:60: error: 'waveform1' was not declared in this scope waveform1.frequency(1000); ^ 1010VCO:62: error: 'WAVEFORM_SINE' was not declared in this scope waveform1.begin(WAVEFORM_SINE); ^ 1010VCO:64: error: 'waveform2' was not declared in this scope waveform2.frequency(1000); ^ 1010VCO:66: error: 'WAVEFORM_SAWTOOTH' was not declared in this scope waveform2.begin(WAVEFORM_SAWTOOTH); ^ 1010VCO: In function 'void loop()': 1010VCO:90: error: 'peak1' was not declared in this scope if (peak1.available()) ^ 1010VCO:93: error: 'waveform1' was not declared in this scope waveform1.frequency(calcFreqFromPeakValueIN1(peakValue1)); ^ 1010VCO:96: error: 'peak2' was not declared in this scope if (peak2.available()) ^ 1010VCO:99: error: 'waveform2' was not declared in this scope waveform2.frequency(calcFreqFromPeakValueIN2(peakValue2)); ^ 'AudioInputI2S' does not name a type This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.