[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] which way to play sound?
I use
pygame.init()
pygame.mixer.init()
sounda= pygame.mixer.Sound("click10a.wav")
soundb= pygame.mixer.Sound("yow_oo.wav")
and sounda.play()
works great for me.
On Fri, 2004-04-23 at 03:14, Michael wrote:
> Which of these is the better way to play sound effects?
>
> MySound.play ()
>
> or
>
> channel = pygame.mixer.find_channel ( True )
> if channel:
> channel.play ( MySound )
>
> or
>
> some other way?