From: Neil Date: Thu, 15 May 2014 18:29:29 +0000 (+0200) Subject: Squawk a bit X-Git-Tag: 0.1~277 X-Git-Url: https://git.ctpug.org.za/?p=naja.git;a=commitdiff_plain;h=d3fee83858c30b34d362f261bebb2974954e59ae Squawk a bit --- diff --git a/data/sounds/SOURCES.txt b/data/sounds/SOURCES.txt index 5224bcb..cfb2dfb 100644 --- a/data/sounds/SOURCES.txt +++ b/data/sounds/SOURCES.txt @@ -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 index 0000000..ac62c6b Binary files /dev/null and b/data/sounds/error.ogg differ diff --git a/naja/widgets/info_area.py b/naja/widgets/info_area.py index babf873..81cd0bb 100644 --- a/naja/widgets/info_area.py +++ b/naja/widgets/info_area.py @@ -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)