Author: asterix Date: 2006-07-17 12:04:43 +0200 (Mon, 17 Jul 2006) New Revision: 6553
Modified: trunk/src/common/helpers.py Log: introduce play_sound_file function in helpers
Modified: trunk/src/common/helpers.py =================================================================== --- trunk/src/common/helpers.py 2006-07-15 13:27:57 UTC (rev 6552) +++ trunk/src/common/helpers.py 2006-07-17 10:04:43 UTC (rev 6553) @@ -418,6 +418,9 @@ if not gajim.config.get('sounds_on'): return path_to_soundfile = gajim.config.get_per('soundevents', event, 'path') + play_sound_file(path_to_soundfile) + +def play_sound_file(path_to_soundfile): if path_to_soundfile == 'beep': print '\a' # make a speaker beep return