From 12bf798a4bae5d19cacd8052570cbc9b3fc9b3e7 Mon Sep 17 00:00:00 2001 From: Santiago Jaramillo Date: Mon, 5 Jan 2015 09:29:04 -0800 Subject: [PATCH] Enabled setting computer volume at start of sound client. --- plugins/soundclient.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/soundclient.py b/plugins/soundclient.py index cfe2279..04327f6 100644 --- a/plugins/soundclient.py +++ b/plugins/soundclient.py @@ -68,6 +68,13 @@ USEJACK = False SERIALTRIGGER = False +# -- Set computer's sound level -- +if hasattr(rigsettings,'SOUND_VOLUME_LEVEL'): + baseVol = rigsettings.SOUND_VOLUME_LEVEL + if baseVol is not None: + os.system('amixer set Master {0}% > /dev/null'.format(baseVol)) + print 'Set sound volume to {0}%'.format(baseVol) + class SoundPlayer(threading.Thread): def __init__(self,serialtrigger=True): threading.Thread.__init__(self)