Skip to content

Commit f7f13e3

Browse files
committed
add buffering for mp3 playback to reduce popping on I2S when I2C or SPI is accessed
1 parent 19d0978 commit f7f13e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Walkmp3rson/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def tracktext(full_path_name, position):
8383
# Feather M4
8484
# audio = audiobusio.I2SOut(bit_clock=board.D1, word_select=board.D10, data=board.D11)
8585
mixer = audiomixer.Mixer(voice_count=1, sample_rate=22050, channel_count=1,
86-
bits_per_sample=16, samples_signed=True)
86+
bits_per_sample=16, samples_signed=True, buffer_size=32768)
8787
mixer.voice[0].level = 0.15
8888

8989
# Colors

0 commit comments

Comments
 (0)