diff sounds.py @ 150:80672955ab70

PARPG now works with, and needs Fife 0.3.3.
author KarstenBock@gmx.net
date Tue, 11 Oct 2011 14:47:37 +0200
parents 7a89ea5404b1
children f131a1b01254
line wrap: on
line diff
--- a/sounds.py	Mon Oct 10 15:12:33 2011 +0200
+++ b/sounds.py	Tue Oct 11 14:47:37 2011 +0200
@@ -14,6 +14,7 @@
 #   along with PARPG.  If not, see <http://www.gnu.org/licenses/>.
 
 # sounds.py holds the object code to play sounds and sound effects
+from fife import fife
 
 class SoundEngine:
     def __init__(self, fife_engine):
@@ -36,7 +37,7 @@
            @return: None"""
         if(sfile is not None):
             # setup the new sound
-            sound = self.engine.getSoundClipPool().addResourceFromFile(sfile)
+            sound = self.engine.getSoundClipManager().load(sfile)
             self.music.setSoundClip(sound)
             self.music.setLooping(True)
             self.music_init = True