[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] pygame.mixer.Channel - Name of the sound that is currently playing?



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.