Skip to content

Commit

Permalink
Enabled setting computer volume at start of sound client.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjara committed Jan 5, 2015
1 parent 73c3a84 commit 12bf798
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plugins/soundclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 12bf798

Please sign in to comment.