AudioSynthWaveformModulated not working. (err: does not name a type)

Status
Not open for further replies.
Hey,

Just trying to register a simple Modulated Waveform... Always run into this error:

error: 'AudioSynthWaveformModulated' does not name a type
AudioSynthWaveformModulated waveformMod1;

I've tried using even the most up to date version of the Audio library directly from Git.

Any ideas?

Code:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>

// GUItool: begin automatically generated code
AudioSynthWaveform       waveform1;      //xy=133,134
AudioSynthWaveformModulated waveformMod1;   //xy=344,157
AudioOutputI2S           i2s1;           //xy=650,188
AudioConnection          patchCord1(waveform1, 0, waveformMod1, 0);
AudioConnection          patchCord2(waveform1, 0, waveformMod1, 1);
AudioConnection          patchCord3(waveformMod1, 0, i2s1, 0);
AudioConnection          patchCord4(waveformMod1, 0, i2s1, 1);
AudioControlSGTL5000     sgtl5000_1;     //xy=274,362
// GUItool: end automatically generated code
 
AudioSynthWaveformModulated is in the online Audio design tool and in the git repository.
I've just modified one of my sketches that used AudioSynthWaveformSineModulated and changed it to use AudioSynthWaveformModulated and then used the latest git version. It compiles without complaint.

Pete
 
Face palm. I forgot to manually update the libraries in Arduino when I used the Github version.

Thanks, everybody.

Hello everyone,

This is my first time on the forum. I am having the same issue as the previous user. When using the AudioSyntWaveformModulated object I receive an error saying " 'AudioSyntWaveformModulated' does not name a type". I have manually updated the latest audio libraries and my Arduino software, and am still receiving the error. Any suggestions?
 
Status
Not open for further replies.
Back
Top