python check problem
Hi. I wrote a small media player in python using carters sound module. How ever, the thing doesn't seam to check the is_playing correctly. Here is the code part that causes problem.
if(paused==False&s.is_playing==False):
s.close()
num+=1
if num==len(files): num=0
s.load(files[num])
s.volume=vol
s.pitch=pitch
s.play()
the other variables are only these where the files are geting hold in, volume and pitch, so not important for this problem i think. I can how ever post the full code if it helps. What this is basically soposed to do is keep checking if the sound is still playing, and if it isn't and it is also not paused, then go over to the next track. How ever, it keeps rapitly scipping through the tracks, as if the is_playing would return false all the time. Does anyone know what mait be the problem?
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector