Squawk a bit
authorNeil <neil@dip.sun.ac.za>
Thu, 15 May 2014 18:29:29 +0000 (20:29 +0200)
committerNeil <neil@dip.sun.ac.za>
Thu, 15 May 2014 18:29:38 +0000 (20:29 +0200)
data/sounds/SOURCES.txt
data/sounds/error.ogg [new file with mode: 0644]
naja/widgets/info_area.py

index 5224bcb56abf712319f14104a87760f0cdbde30b..cfb2dfb91d4067072705134415eec4eac2285b8a 100644 (file)
@@ -17,3 +17,10 @@ Notes:
    Generate by Neil Muller, May 2014
    License: MIT-style permissive license - see LICENSE.txt
 
+error.ogg
+---------
+
+Notes:
+   Generated by: tools/gen_sound.py 1000 0.25 ; oggenc -o error.ogg -r beep1000.pcm
+   Generate by Neil Muller, May 2014
+   License: MIT-style permissive license - see LICENSE.txt
diff --git a/data/sounds/error.ogg b/data/sounds/error.ogg
new file mode 100644 (file)
index 0000000..ac62c6b
Binary files /dev/null and b/data/sounds/error.ogg differ
index babf873de9e2d177fd574be12c7259e5d050c89f..81cd0bb1d3c228b631093af6ea356107b9942aa9 100644 (file)
@@ -118,6 +118,7 @@ class InfoAreaWidget(Widget):
                 player = self.state.player
                 action = self.card.actions[self.chosen]
                 if not action.check_available(player):
+                    sound.play_sound('error.ogg')
                     print "BEEP!"
                 else:
                     action.perform_action(self.state.gameboard, self.card)