Re: [pygame] unsubscribe pygame-users
You had the right text ("unsubscribe pygame-users"), but you need to send it to: majord...@seul.org On 22 April 2018 at 18:35, Jorge Maldonado Ventura wrote: > Cloudflare blocks Tor users so I can't access the link, can you paste > the instructions here? > > > El 21.04.2018 a las 14:43, Thomas Kluyver escribió: > > Sending this to the list doesn't work - there's a a separate address > > for control messages. See: > > > > https://www.pygame.org/wiki/info > >
Re: [pygame] unsubscribe pygame-users
Cloudflare blocks Tor users so I can't access the link, can you paste the instructions here? El 21.04.2018 a las 14:43, Thomas Kluyver escribió: > Sending this to the list doesn't work - there's a a separate address > for control messages. See: > > https://www.pygame.org/wiki/info
Re: [pygame] Only first call to Sound.play() is working
Thanks Greg and Pablo for the advice. It turned out to be what Greg mentioned, that the second call to play() wasn't making any sound because the script terminated immediately after. Adding a second time.sleep(10) solved the problem. Thanks again! Avi On Fri, Apr 20, 2018 at 2:15 AM Greg Ewing wrote: > Pablo Moleri wrote: > > import time > > import pygame > > > > pygame.mixer.init() > > sound = pygame.mixer.Sound("my_sound_file.wav") > > sound.play() > > time.sleep(10) > > sound.play() > > If that's you're entire program, I'd say it's finishing before > the second sound gets a chance to play. The sound.play() call > only *starts* the sound playing, it doesn't wait for it to > finish. > > Try putting another time.sleep(10) after the second play. > > -- > Greg >