sound Submodule

SoundController

class procgame.sound.SoundController(delegate)

Wrapper for pygame sound.

fadeout_music(time_ms=450)
load_music(key)
play(key, loops=0, max_time=0, fade_ms=0)
play_music(key, loops=0, start_time=0.0)

Start playing music at the given key.

play_voice(key, loops=0, max_time=0, fade_ms=0)
register_music(key, music_file)
register_sound(key, sound_file)
set_volume(new_volume)
stop(key, loops=0, max_time=0, fade_ms=0)
stop_music()

Stop the currently-playing music.

volume_down()
volume_up()

Table Of Contents

Previous topic

modes Submodule

Next topic

pinproc Module Reference

This Page