cocos.audio.effect module

class Effect(filename)

Bases: object

Effects are sounds effect loaded in memory

Example

shot = Effect('bullet.wav')
shot.play() # Play right now
sprite.do(shot.action)
play()