- Timestamp:
- Jun 24, 2010, 1:11:23 AM (14 years ago)
- Branches:
- master, debian, mac, no-cups, nodebathena, web
- Children:
- 9f0c46e
- Parents:
- 94a58ce
- git-author:
- root <root@…> (10/11/09 00:58:04)
- git-committer:
- Jessica B. Hamrick <jhamrick@…> (06/24/10 01:11:23)
- Location:
- gutenbach/debian/lib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
gutenbach/debian/lib/sipbmp3-get-config
r32b323f r28836c2 6 6 my $host = `hostname`; 7 7 my $queue = "sipbmp3"; 8 my $channel = "Headphone"; 8 my $mixer = "Headphone"; 9 my $channel = "Front Left"; 9 10 10 11 # Configuration … … 22 23 'host' => $host, 23 24 'queue' => $queue, 25 'mixer' => $mixer, 24 26 'channel' => $channel, 25 27 ); -
gutenbach/debian/lib/volume-get
r5dd3058 r28836c2 2 2 PATH="$(dirname $0):$PATH" 3 3 4 mixer=$(sipbmp3-get-config mixer) 4 5 channel=$(sipbmp3-get-config channel) 5 6 6 amixer get $ channel\7 | perl -lne 'print $1 if (/ Front Left: Playback ([0-9]+)/)'7 amixer get $mixer | grep "$channel" \ 8 | perl -lne 'print $1 if (/: Playback ([0-9]+)/)' -
gutenbach/debian/lib/volume-mute
r94a58ce r28836c2 6 6 instance="$queue-volume@$host" 7 7 8 mixer=$(sipbmp3-get-config mixer) 8 9 channel=$(sipbmp3-get-config channel) 9 10 10 zwrite -c $class -i $instance -d -n -m "Toggling mute on $queue" 11 result=$(amixer set $mixer toggle) 12 echo "$result" 13 volstat=$(echo $result | grep "$channel" \ 14 | perl -lne 'print $1 if (/: Playback .*\[(on|off)\]$/)' 15 ) 11 16 12 amixer set $channel toggle 17 zwrite -c $class -i $instance -d -n -m "$REMOTE_USER set volume $volstat" > /dev/null -
gutenbach/debian/lib/volume-set
r94a58ce r28836c2 6 6 instance="$queue-volume@$host" 7 7 8 channel=$(sipbmp3-get-config channel) 8 mixer=$(sipbmp3-get-config mixer) 9 channel="$(sipbmp3-get-config channel)" 9 10 10 amixer set $ channel "$2" \11 | perl -lne 'print $1 if (/ Front Left: Playback ([0-9]+)/)'11 amixer set $mixer "$2" | grep "$channel" \ 12 | perl -lne 'print $1 if (/: Playback ([0-9]+)/)' 12 13 13 zwrite -c $class -i $instance -d -n -m " Setting volume to $(volume-get) on $queue"14 zwrite -c $class -i $instance -d -n -m "$REMOTE_USER set volume to $(volume-get)" > /dev/null
Note: See TracChangeset
for help on using the changeset viewer.