Compiler error using ExpEnvelope Audio Object

Hi folks

I recently added Jonathan Oakley's effect_expenvelope .cpp and .h files to the Audio Library.

I'm trying to compile using Arduini 1.8.19 and Teensyduino 1.56 and the compiler flags errors with this code from the header file:-

Code:
asm volatile("usat %0, %1, %2, asr %3" : "=r" (out) : "I" (bits), "r" (val), "I" (rshift));

The compiler flags:-
- a missing " character (at the term asm)
-and ')' expected before '=' token (at the "=r" term)

Are these a result of using an older version of Arduino IDE and Teensyduino?

Thanks
Chris
 
It ought to work OK. I’ve just checked back, and most of that was written in April 2021, so almost certainly using Teensyduino 1.55.

Maybe posting the actual compiler output with verbose mode on, in code tags, would yield more clues? It looks a bit as if you have a corrupted source file, though the one line you posted is fine … in isolation.
 
I deleted the copies added to the sketch and downloaded them afresh.
Compiles fine now! Must have accidentally edited something on the sketch.

False alarm. Apologies! Cheers for the reply (again!)
 
Back
Top