Mercurial > fife-parpg
diff demos/rio_de_hola/run.py @ 493:e29853880e87
Adapted rio_do_hola to use the new SoundManager.
Fixed a bug in the sound manager that caused a sound to not be looped if it did not have a callback assigned to it.
Looping a stream using timers doesn't loop perfectly. I'll fix this in the future.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Fri, 07 May 2010 21:46:25 +0000 |
parents | 3a6441d9e01c |
children | 987307d12235 |
line wrap: on
line diff
--- a/demos/rio_de_hola/run.py Fri May 07 21:07:27 2010 +0000 +++ b/demos/rio_de_hola/run.py Fri May 07 21:46:25 2010 +0000 @@ -123,17 +123,6 @@ self.listener = ApplicationListener(self.engine, self.world) self.world.load(str(TDS.readSetting("MapFile"))) - self.soundmanager = self.engine.getSoundManager() - self.soundmanager.init() - - if int(TDS.readSetting("PlaySounds")): - # play track as background music - emitter = self.soundmanager.createEmitter() - id = self.engine.getSoundClipPool().addResourceFromFile('music/rio_de_hola.ogg') - emitter.setSoundClip(id) - emitter.setLooping(True) - emitter.play() - def loadSettings(self): """ Load the settings from a python file and load them into the engine.