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

2010-12-20 Thread Lenard Lindstrom
On 19/12/10 01:50 PM, Ian Mallett wrote: You can give your sound object a new field, and put a name in it, and then check that name. I don't know if you can add a field directly to a Sound instance. But pygame.mixer.Sound can be subclasses, and the subclass accepts additional attributes. Then

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

2010-12-19 Thread Brian Gryder
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

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

2010-12-19 Thread Ian Mallett
You can give your sound object a new field, and put a name in it, and then check that name.