[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] pygame.mixer.Channel - Name of the sound that is currently playing?
- To: pygame-users@xxxxxxxx
- Subject: [pygame] pygame.mixer.Channel - Name of the sound that is currently playing?
- From: Brian Gryder <bgryderclock@xxxxxxxxx>
- Date: Sun, 19 Dec 2010 14:39:24 -0500
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Sun, 19 Dec 2010 14:39:32 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=8ECMmAKKx5AbrfjLkaaJnJwMQb283OE+y5Kq1NbnqsM=; b=fLvJb7HJncpYPQuODjHPDwfM8WceUn4IQIjvO7Pywm2xvKje3dYdRPwDEg4cKO2FoW yomog4+dMG07c2bTs/mblcNGN81u4oMVXpe2277nAXdO6la5yESzYX4p0mLH5s8qjfOE MwdO1ZExpqh0AaY37tWyzDduzgh/t+M7knHpo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=YCtyMX4n0aEbqNtV3yqE8zXJG9IbtHNP8a7+K2/ZcPJeiUPqp9MnyUW7whNKmXFjNl oY2f+L3c7gEG3nySwLH69DBGDYNiIyQ5XnJ2rVAG5fCXQDds0PbfMPIaX9EUuKlrTxGz K+ZS6CPrrip6ttYE1Elu7eMI2I3L1e4oLbgFo=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hi,
I am working on a program that queues and loops sound files through one pygame mixer channel. I want to display a message that notifies the users if they queue the same sound file that is currently playing. How do you get the name of the file that is currently playing?
Perhaps something like this...
if mynextsound == reserved_channel.playingfile:
screen.blit(my_font.render("Same Queued",True,black),(0,0) )
pygame.display.update()
Any code snippets, links to articles, or suggestions would be greatly appreciated. Thanks.