Changeset bbede33 for remctl/lib/gutenbach/volume-helper.py
- Timestamp:
- Sep 9, 2010, 5:54:54 PM (14 years ago)
- Branches:
- master, debian, mac, no-cups
- Children:
- d8d9c7a
- Parents:
- e01a3af
- git-author:
- Mats Erik Ahlgren <mats.ahlgren@…> (09/09/10 17:54:54)
- git-committer:
- Mats Erik Ahlgren <mats.ahlgren@…> (09/09/10 17:54:54)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
remctl/lib/gutenbach/volume-helper.py
re01a3af rbbede33 31 31 tempV = int(v + (newV-v)*frac) 32 32 command = ['amixer', 'set', 'PCM', str(tempV)] 33 print tempV33 #print tempV 34 34 sys.stdout.flush() 35 35 call(command, stdout=PIPE) … … 43 43 44 44 newVolume = map[arg] 45 print 'Smoothly modifying over 3 seconds... (from %i)' % v 45 46 # Alert user 47 print 'Smoothly modifying over next 3 seconds, by ~3dB (from %i to %i)...' % (v, newVolume) 46 48 sys.stdout.flush() 49 50 # Adjust volume 47 51 setVolume(newVolume) 52 53 # Alert user 48 54 print 'Volume adjust finished.' 55 56 # Send zephyr 49 57 call([j(currentDir,'volume-zephyr')]) 58
Note: See TracChangeset
for help on using the changeset viewer.