Changeset 28836c2 for gutenbach


Ignore:
Timestamp:
Jun 24, 2010, 1:11:23 AM (14 years ago)
Author:
Jessica B. Hamrick <jhamrick@…>
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)
Message:

Improve configuration and fine-tune zephyrs

Location:
gutenbach/debian/lib
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • gutenbach/debian/lib/sipbmp3-get-config

    r32b323f r28836c2  
    66my $host = `hostname`;
    77my $queue = "sipbmp3";
    8 my $channel = "Headphone";
     8my $mixer = "Headphone";
     9my $channel = "Front Left";
    910
    1011# Configuration
     
    2223    'host' => $host,
    2324    'queue' => $queue,
     25    'mixer' => $mixer,
    2426    'channel' => $channel,
    2527);
  • gutenbach/debian/lib/volume-get

    r5dd3058 r28836c2  
    22PATH="$(dirname $0):$PATH"
    33
     4mixer=$(sipbmp3-get-config mixer)
    45channel=$(sipbmp3-get-config channel)
    56
    6 amixer get $channel \
    7  | perl -lne 'print $1 if (/Front Left: Playback ([0-9]+)/)'
     7amixer get $mixer | grep "$channel" \
     8 | perl -lne 'print $1 if (/: Playback ([0-9]+)/)'
  • gutenbach/debian/lib/volume-mute

    r94a58ce r28836c2  
    66instance="$queue-volume@$host"
    77
     8mixer=$(sipbmp3-get-config mixer)
    89channel=$(sipbmp3-get-config channel)
    910
    10 zwrite -c $class -i $instance -d -n -m "Toggling mute on $queue"
     11result=$(amixer set $mixer toggle)
     12echo "$result"
     13volstat=$(echo $result | grep "$channel" \
     14 | perl -lne 'print $1 if (/: Playback .*\[(on|off)\]$/)'
     15)
    1116
    12 amixer set $channel toggle
     17zwrite -c $class -i $instance -d -n -m "$REMOTE_USER set volume $volstat" > /dev/null
  • gutenbach/debian/lib/volume-set

    r94a58ce r28836c2  
    66instance="$queue-volume@$host"
    77
    8 channel=$(sipbmp3-get-config channel)
     8mixer=$(sipbmp3-get-config mixer)
     9channel="$(sipbmp3-get-config channel)"
    910
    10 amixer set $channel "$2" \
    11  | perl -lne 'print $1 if (/Front Left: Playback ([0-9]+)/)'
     11amixer set $mixer "$2" | grep "$channel" \
     12 | perl -lne 'print $1 if (/: Playback ([0-9]+)/)'
    1213
    13 zwrite -c $class -i $instance -d -n -m "Setting volume to $(volume-get) on $queue"
     14zwrite -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.