Changeset b1d66d4 for gutenbach


Ignore:
Timestamp:
Jun 24, 2010, 1:10:51 AM (14 years ago)
Author:
Jessica B. Hamrick <jhamrick@…>
Branches:
master, debian, mac, no-cups, nodebathena, web
Children:
32b323f
Parents:
12722bc
git-author:
Alex Dehnert <adehnert@…> (10/10/09 17:38:48)
git-committer:
Jessica B. Hamrick <jhamrick@…> (06/24/10 01:10:51)
Message:

Send zephyrs on volume change operations

  • Adds sipbmp3-get-config to retrieve configuration parameters.
  • Makes volume-mute and volume-set send zephyrs to -i $queue-volume@$host on volume-change requests
Location:
gutenbach/debian/lib
Files:
1 added
2 edited

Legend:

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

    r737d88b rb1d66d4  
    11#!/bin/sh
    22PATH="$(dirname $0):$PATH"
     3class=$(sipbmp3-get-config zephyr-class)
     4host=$(sipbmp3-get-config host)
     5queue=$(sipbmp3-get-config queue)
     6instance="$queue-volume@$host"
     7zwrite -c $class -i $instance -n -m "Toggling mute on $queue"
     8
    39amixer set Headphone toggle
  • gutenbach/debian/lib/volume-set

    r737d88b rb1d66d4  
    11#!/bin/sh
    22PATH="$(dirname $0):$PATH"
     3class=$(sipbmp3-get-config zephyr-class)
     4host=$(sipbmp3-get-config host)
     5queue=$(sipbmp3-get-config queue)
     6instance="$queue-volume@$host"
     7zwrite -c $class -i $instance -n -m "Setting volume to $2 on $queue"
     8
    39amixer set Headphone "$2" \
    410 | perl -lne 'print $1 if (/Front Left: Playback ([0-9]+)/)'
Note: See TracChangeset for help on using the changeset viewer.