I have built classes for custom purposes and put the sound and channel
objects in an attribute, then exposed the methods I needed. This may
work for you.
If I recall correctly, there is a jukebox recipe under Cookbook on the
pygame.org website that does this.
Gumm
On 1/5/2015 9:59 PM, Brian
Thanks Lenard,
I learned that today when I tried to subclass pygame.mixer.Channel and it
didn't work and error said I was trying to subclass a method and not a
class. :)
No need to change this on my behalf. As I wrote, my current implementation
is to have my own separate class which just referenc
Sprites are a little different. They are Python classes, while Sound and
Channel are extension types coded directly in C. pygame.mixer.Sound is
an actual class object, and can be subclassed. mixer.Channel is just a
function that returns a new Channel instance. The actual Channel type
has not be
unsubscribe pygame-users
That's normal. I usually subclass Sprites every time I use them. They even
have methods set up that you are expected to override.
Paul Vincent Craven
On Mon, Jan 5, 2015 at 4:10 PM, Brian Madden
wrote:
> Hi Everyone!
>
> In my app I'm making heavy use of Pygame mixer's Channels and Sound
> obje
Hi Everyone!
In my app I'm making heavy use of Pygame mixer's Channels and Sound
objects. In both cases I need to add additional methods and attributes to
them. Is my code is now, I have my own classes of each which reference
related Pygame classes. (In other words, my "Channel" class has a bunch