We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd3c139 commit b51ad7dCopy full SHA for b51ad7d
1 file changed
internal_filesystem/lib/mpos/audio/stream_wav.py
@@ -594,9 +594,9 @@ def play(self):
594
raw[i] = 0
595
elif shift > 0:
596
try:
597
- self._i2s.shift(buf=raw, bits=16, shift=shift)
+ self._i2s.shift(buf=raw, bits=16, shift=-shift)
598
except Exception as e:
599
- #print(f"_i2s.shift got exception, falling back to software scaling: {e}")
+ print(f"_i2s.shift got exception, falling back to software scaling: {e}")
600
_scale_audio_optimized(raw, len(raw), scale_fixed)
601
else:
602
#print("_i2s has no shift attribute, falling back to software scaling")
0 commit comments