Hi forum,
I have a simple problem with changing the volume of the Teensy audio shield (SGTL5000): At startup it works without problem (inside setup()), but directly from my running code nothing happens when calling sgtl1.volume(...);:
num is an unsigned integer, so normally this should work, or? I can see the DEBUG code in the serial console so I am sure the call to volume() is done...
Any ideas?
TIA, Holger
I have a simple problem with changing the volume of the Teensy audio shield (SGTL5000): At startup it works without problem (inside setup()), but directly from my running code nothing happens when calling sgtl1.volume(...);:
Code:
...
// a black key!
num = abs(num);
if (num <= 10)
{
sgtl5000_1.volume(num * 0.1);
#ifdef DEBUG
Serial.print(F("Volume changed to: "));
Serial.println(num * 0.1, DEC);
#endif
...
num is an unsigned integer, so normally this should work, or? I can see the DEBUG code in the serial console so I am sure the call to volume() is done...
Any ideas?
TIA, Holger