rlzero.Sound

class rlzero.Sound(file, volume=1.0, pitch=1.0)

A sound effect loaded from a wav file.sssss

__init__(file, volume=1.0, pitch=1.0)

Methods

__init__(file[, volume, pitch])

load_data()

Loads the sound data from wav file on disk.

play()

Play the sound using the current volume and pitch.

Attributes

pitch

Multiply the same frequency by this float.

volume

How loud to play the sound.