I make music player in Pythonista. A single mp3 file plays fine, but if I play multiple mp3 files, they all play at the same time.
Anyone has any idea?
This is my code:
import sound
import time
import glob
fileList = glob.glob("i7/*") #my folder
playerlist = []
for file in fileList:
filename = file
sound.set_honors_silent_switch(False)
sound.set_volume(1)
player = sound.Player(filename)
playerlist.append(player)
for playerMin in playerlist:
playerMin.play() #same time