Skip to content
Snippets Groups Projects
Commit a54ee022 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

introduce play_sound_file function in helpers

parent 33587064
No related branches found
No related tags found
No related merge requests found
......@@ -418,6 +418,9 @@ def play_sound(event):
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment