Using "amp" from Audio.h

Status
Not open for further replies.

C0d3man

Well-known member
[SOLVED] Using "amp" from Audio.h

Hi forum,

I have a little problem using the simple "amp" after a queue:

Screenshot_20180719_094032.png

When trying to set amp1.gain(0.5); inside setup() the Teensy freezes. Without setting initial values I get crackling noise. Without amps it works... Can I use the amps directly after a queue?
I tried to create a pan feature with the amps. The same problems happens when using a mixer-object.

I am using Teensy 1.42 on Arduino-IDE-1.8.5.

Regards, Holger
 
Last edited:
Solved by myself... simple solution: I had too few AudioMemory allocated (only 2) - works when using

Code:
  AudioMemory(4);

Regards, Holger
 
Last edited:
Do the problems happen if you use an ordinary (non queue) source like a SD wav player or waveforms synth?

Edit: oh, I see it's solved. Good. :)
 
Status
Not open for further replies.
Back
Top