From f67a1150e9f23c8b23e83b10cc97b2a43d59215f Mon Sep 17 00:00:00 2001 From: Antoine van Gelder Date: Tue, 30 Oct 2007 20:45:00 +0000 Subject: * Feature: If no sound set, play default sound: laugh_attack.au * Fixed: Activity icon now adopts users color scheme * Fixed: Temp directory now rooted off activity.get_activity_root() * Fixed: Moved locale/ dir back to po/ * Fixed: Temp filenames now created using more secure tempfile.mkstemp() * i18n: Changed pot files to utf-8 --- (limited to 'unit') diff --git a/unit/unit.py b/unit/unit.py index cf06715..e8eba7b 100755 --- a/unit/unit.py +++ b/unit/unit.py @@ -32,6 +32,16 @@ from util.decorators import Property # test Property decorator # + +from util.audioplayer import AudioPlayer + +audio = AudioPlayer() +#audio.uri = '/home/antoine/Projects/dev.laptop.org/sugar-jhbuild/build/share/activities/JokeMachine.activity/resources/laugh_attack.wav' +audio.uri = '/home/antoine/Projects/dev.laptop.org/sugar-jhbuild/source/sugar/data/startup.flac' +audio.play() + +sys.exit() + #class Foo(object): #@Property -- cgit v0.9.1