File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ class int24_t {
43
43
set ((int32_t )in);
44
44
}
45
45
46
- #if defined(STM32) || defined(ESP32C3) || defined(TARGET_RP2040) || defined(AUDIOKIT_USE_IDF)
46
+ #if defined(STM32) || defined(ESP32C3) || defined(TARGET_RP2040) || defined(AUDIOKIT_USE_IDF) || defined(ARDUINO_ARCH_SAMD)
47
47
48
48
int24_t (const int &in) {
49
49
set (in);
Original file line number Diff line number Diff line change @@ -707,7 +707,7 @@ class VolumePrint : public AudioPrint {
707
707
T *bufferT = (T*)buffer;
708
708
int samplesCount = size/sizeof (T);
709
709
for (int j=0 ;j<samplesCount;j++){
710
- float tmp = static_cast <float >( abs (bufferT[j]));
710
+ float tmp = abs ( static_cast <float >(bufferT[j]));
711
711
updateVolume (tmp,j);
712
712
}
713
713
commit ();
You can’t perform that action at this time.
0 commit comments