Skip to content

Commit 888b8f9

Browse files
author
Kevin J Walters
committed
Adding illustration of the "three magic 0s" bizarre workaround for adafruit/circuitpython#1992 - no idea why this works.
1 parent 85c9848 commit 888b8f9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pygamer/audioio-phasebug.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4991,6 +4991,14 @@
49914991
### This prints 4930
49924992
print("rawdata length", len(rawdata))
49934993

4994+
bizarre_workaround = False
4995+
if bizarre_workaround:
4996+
rawdata.append(0)
4997+
rawdata.append(0)
4998+
rawdata.append(0)
4999+
5000+
print("rawdata adjusted length", len(rawdata))
5001+
49945002
### Change this to True and everything is ok - very odd!
49955003
overwrite_values = False
49965004

0 commit comments

Comments
 (0)