Changeset 5dd3058


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:
94a58ce
Parents:
32b323f
git-author:
Alex Dehnert <adehnert@…> (10/10/09 22:35:29)
git-committer:
Jessica B. Hamrick <jhamrick@…> (06/24/10 01:11:23)
Message:

Actually implement channel configurability

Location:
gutenbach/debian/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • gutenbach/debian/lib/volume-get

    r737d88b r5dd3058  
    11#!/bin/sh
    22PATH="$(dirname $0):$PATH"
    3 amixer get Headphone \
     3
     4channel=$(sipbmp3-get-config channel)
     5
     6amixer get $channel \
    47 | perl -lne 'print $1 if (/Front Left: Playback ([0-9]+)/)'
  • gutenbach/debian/lib/volume-mute

    rb1d66d4 r5dd3058  
    55queue=$(sipbmp3-get-config queue)
    66instance="$queue-volume@$host"
     7
     8channel=$(sipbmp3-get-config channel)
     9
    710zwrite -c $class -i $instance -n -m "Toggling mute on $queue"
    811
    9 amixer set Headphone toggle
     12amixer set $channel toggle
  • gutenbach/debian/lib/volume-set

    rb1d66d4 r5dd3058  
    55queue=$(sipbmp3-get-config queue)
    66instance="$queue-volume@$host"
    7 zwrite -c $class -i $instance -n -m "Setting volume to $2 on $queue"
    87
    9 amixer set Headphone "$2" \
     8channel=$(sipbmp3-get-config channel)
     9
     10amixer set $channel "$2" \
    1011 | perl -lne 'print $1 if (/Front Left: Playback ([0-9]+)/)'
     12
     13zwrite -c $class -i $instance -n -m "Setting volume to $(volume-get) on $queue"
Note: See TracChangeset for help on using the changeset viewer.