Sound effects can be triggered by sending an event:
def on_button_pressed(self, event, signal): signal(PlaySound(sound=ppb.Sound('toot.ogg')))
The following sound formats are supported:
Additionally, MIDI may be supported.
As is usual with assets, you should instantiate your
as soon as possible, such as at the class level.
An object requested a sound be played.
Signal in an event handler to have a sound played.
The asset to use for sounds. A variety of file formats are supported.