From: Neil Date: Thu, 15 May 2014 18:43:27 +0000 (+0200) Subject: Add welcome sound X-Git-Tag: 0.1~275 X-Git-Url: https://git.ctpug.org.za/?p=naja.git;a=commitdiff_plain;h=f6212eaa8b011e7a79b1a0d54e2e756cad9e6a19 Add welcome sound --- diff --git a/data/sounds/SOURCES.txt b/data/sounds/SOURCES.txt index cfb2dfb..76ac231 100644 --- a/data/sounds/SOURCES.txt +++ b/data/sounds/SOURCES.txt @@ -24,3 +24,13 @@ 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 + +startup.ogg +----------- + +Notes: + Generated by: tools/gen_sound.py 200 0.25 ; tools/gen_sound.py 400 0.25 ; tools/gen_sound.py 600 0.25 ; tools/gen_sound.py 800 0.25 ; + cat beep200.pcm beep400.pcm beep600.pcm beep800.pcm > startup.pcm ; + oggenc -o startup.ogg -r startup.pcm + Generate by Neil Muller, May 2014 + License: MIT-style permissive license - see LICENSE.txt diff --git a/data/sounds/startup.ogg b/data/sounds/startup.ogg new file mode 100644 index 0000000..ad2f39b Binary files /dev/null and b/data/sounds/startup.ogg differ diff --git a/naja/scenes/game.py b/naja/scenes/game.py index c0f52a8..b50065f 100644 --- a/naja/scenes/game.py +++ b/naja/scenes/game.py @@ -12,6 +12,7 @@ from naja.widgets.player_bits import PlayerBitsWidget from naja.widgets.game_bits import GameBitsWidget from naja.widgets.info_area import InfoAreaWidget from naja.widgets.robot import RobotWidget +from naja.sound import sound class GameScene(Scene): @@ -27,6 +28,7 @@ class GameScene(Scene): self.add(GameBitsWidget((0, 540), state)) self.add(info) self.add(RobotWidget(state)) + sound.play_sound('startup.ogg') def handle_scene_event(self, ev): from naja.scenes.menu import MenuScene