From: Simon Cross Date: Thu, 15 May 2014 21:20:37 +0000 (+0200) Subject: Nicer change menu item sound. X-Git-Tag: 0.1~252 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=fbe71dd6427cde1ab5d3089dea306e7fde35b30b;p=naja.git Nicer change menu item sound. --- diff --git a/data/sounds/SOURCES.txt b/data/sounds/SOURCES.txt index f9c185e..dd794d7 100644 --- a/data/sounds/SOURCES.txt +++ b/data/sounds/SOURCES.txt @@ -9,11 +9,11 @@ Notes: Generated by Neil Muller, Aug 2010 Not copyrightable. -change_action.ogg ------------------ +zzzzz.ogg +--------- Notes: - Generated by: tools/gen_sound.py 100 0.5 50 ; oggenc -o change_action.ogg -r beep100.pcm + Generated by: tools/gen_sound.py 100 0.5 50 ; oggenc -o zzzzz.ogg -r beep100.pcm Generate by Simon Cross, May 2014 License: MIT-style permissive license - see LICENSE.txt diff --git a/data/sounds/change_action.ogg b/data/sounds/change_action.ogg deleted file mode 100644 index 026a54d..0000000 Binary files a/data/sounds/change_action.ogg and /dev/null differ diff --git a/data/sounds/zzzzz.ogg b/data/sounds/zzzzz.ogg new file mode 100644 index 0000000..2a185c1 Binary files /dev/null and b/data/sounds/zzzzz.ogg differ diff --git a/naja/widgets/selector.py b/naja/widgets/selector.py index f4706ee..fd304a0 100644 --- a/naja/widgets/selector.py +++ b/naja/widgets/selector.py @@ -30,7 +30,7 @@ class SelectorWidget(Container): else: self.position -= 1 self.position %= len(self.widgets) - sound.play_sound('change_action.ogg', volume=0.05) + sound.play_sound('zzzzz.ogg') return True elif ev.key in KEYS.SELECT: return self.widgets[self.position].callback('click')