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)