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
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
You can give your sound object a new field, and put a name in it, and then
check that name.