Mercurial > pyntnclick
diff pyntnclick/sound.py @ 570:9c3528c2cbe5 pyntnclick
Bug fixes for sound hook-up.
author | Simon Cross <hodgestar+bzr@gmail.com> |
---|---|
date | Sat, 11 Feb 2012 15:48:06 +0200 |
parents | 88cffe418201 |
children | e393954e3749 |
line wrap: on
line diff
--- a/pyntnclick/sound.py Sat Feb 11 15:40:40 2012 +0200 +++ b/pyntnclick/sound.py Sat Feb 11 15:48:06 2012 +0200 @@ -96,7 +96,7 @@ if sound is None: try: sound = pygame_Sound(path) - except pygame.error, e: + except pygame.error: print "Sound file not found: %s" % soundfile sound = DummySound() self.sound_cache[path] = sound @@ -106,7 +106,7 @@ return albow.music.PlayList(pieces, random, repeat) def get_music(self, name, prefix): - return albow.music.get_music(name, prefix) + return albow.music.get_music(name, prefix=prefix) def change_playlist(self, new_playlist): albow.music.change_playlist(new_playlist)