Changeset 148111e


Ignore:
Timestamp:
Dec 20, 2002, 10:58:23 PM (22 years ago)
Author:
arolfe <arolfe>
Branches:
master, debian, mac, no-cups, nodebathena, web
Children:
3304401
Parents:
b0d9dda
git-author:
arolfe <arolfe> (12/20/02 22:58:23)
git-committer:
arolfe <arolfe> (12/20/02 22:58:23)
Message:

-rwx------ 1 arolfe mit 14958 Dec 20 2002 sipbmp3-filter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gutenbach/debian/lib/sipbmp3-filter

    rb0d9dda r148111e  
    22# Play the data on STDIN as an audio file
    33#
    4 # $Id: sipbmp3-filter,v 1.1 2002-12-13 03:04:17 arolfe Exp $
     4# $Id: sipbmp3-filter,v 1.2 2002-12-21 03:58:23 arolfe Exp $
    55#
    66# TODO
     
    2121&use_winamp_genres();
    2222
     23print STDERR "STDERR FROM SPOOL FILTER\n";
     24
    2325# set real uid to be effective uid
    2426$< = $>;
     
    2830
    2931# Select the correct output device and set the volume
    30 system("/mit/outland/bin/audio_setdevice -out headphones -volume 100 2>&1 </dev/null > /dev/null");
     32system("/usr/local/bin/audio_setdevice -out headphones 2>&1 </dev/null > /dev/null");
    3133
    3234# The command line we get from lpd is (no spaces between options and args):
     
    5658
    5759# Status messages at start of playback
    58 open(ZEPHYR, '|/usr/athena/bin/zwrite -d -n -c sipb-auto -i sipbmp3 -s "SIPB LPR music spooler"');
     60open(ZEPHYR, '|/usr/athena/bin/zwrite -d -n -c sipb-auto -i sipbmp3@xcb -s "SIPB LPR music spooler"');
    5961print(ZEPHYR "User $opts{'n'} on host $opts{'H'} is playing:\n");
    6062
     
    170172  }
    171173
    172   system("ps -aef | grep ogg123 | awk '{print $2}' | xargs kill -9");
    173   system("ps -aef | grep mpg123 | awk '{print $2}' | xargs kill -9");
     174  system("ps ax | grep ogg123 | awk '{print $2}' | xargs kill -9");
     175  system("ps ax | grep mpg123 | awk '{print $2}' | xargs kill -9");
    174176  system("chmod a+rw /dev/audio");
    175177  system("/mit/infoagents/bin/mpg123 -b 16384 -q $up $uri >/tmp/mpg123.out 2>&1");
    176178
    177179  # Done. Status:
    178   open(ZEPHYR, '|/usr/athena/bin/zwrite -d -n -c sipb-auto -i sipbmp3 -s "SIPB LPR music spooler"');
     180  open(ZEPHYR, '|/usr/athena/bin/zwrite -d -n -c sipb-auto -i sipbmp3@xcb -s "SIPB LPR music spooler"');
    179181
    180182  # Check if there were any errors
     
    303305
    304306    system("chmod a+rw /dev/audio");
    305     system("ps -aef | grep ogg123 | awk '{print $2}' | xargs kill -9");
    306     system("ps -aef | grep mpg123 | awk '{print $2}' | xargs kill -9");
     307    system("ps ax | grep ogg123 | awk '{print $2}' | xargs kill -9");
     308    system("ps ax | grep mpg123 | awk '{print $2}' | xargs kill -9");
    307309    system("/mit/infoagents/bin/mpg123 -b 16384 -q - >/tmp/mpg123.out 2>&1");
    308310
    309311    # Done. Status:
    310     open(ZEPHYR, '|/usr/athena/bin/zwrite -d -n -c sipb-auto -i sipbmp3 -s "SIPB LPR music spooler"');
     312    open(ZEPHYR, '|/usr/athena/bin/zwrite -d -n -c sipb-auto -i sipbmp3@xcb -s "SIPB LPR music spooler"');
    311313
    312314    # Check if there were any errors
     
    376378
    377379  # Done. Status:
    378   open(ZEPHYR, '|/usr/athena/bin/zwrite -d -n -c sipb-auto -i sipbmp3 -s "SIPB LPR music spooler"');
     380  open(ZEPHYR, '|/usr/athena/bin/zwrite -d -n -c sipb-auto -i sipbmp3@xcb -s "SIPB LPR music spooler"');
    379381
    380382  # Check if there were any errors
     
    461463
    462464  # Done. Status:
    463   open(ZEPHYR, '|/usr/athena/bin/zwrite -d -n -c sipb-auto -i sipbmp3 -s "SIPB LPR music spooler"');
     465  open(ZEPHYR, '|/usr/athena/bin/zwrite -d -n -c sipb-auto -i sipbmp3@xcb -s "SIPB LPR music spooler"');
    464466
    465467  # Check if there were any errors
Note: See TracChangeset for help on using the changeset viewer.