Hello friends
I am having a code and trying to play a file repeatly at regular intervals...
Now if the file is long enough,,it cant be stopped before playing the next time.is there a way out?
Hello friends
I am having a code and trying to play a file repeatly at regular intervals...
Now if the file is long enough,,it cant be stopped before playing the next time.is there a way out?
Hello rabaf
I think you use a similar code as below in the loop to play...
If i have the above code running on my device, the previous playing is halted and the sound is played from the very beginning I dont even have to use S.stop() (As i think we are using the same obj i.e. S)Code:filename='e:\\sound.wav' S=audio.Sound.open(filename) # play the sound file S.play()
i think that will work for you..![]()
Pankaj Nathani
www.croozeus.com