Changeset b011fb0 for gutenbach/debian
- Timestamp:
- Oct 14, 2008, 6:20:50 AM (16 years ago)
- Branches:
- master, debian, mac, no-cups, nodebathena, web
- Children:
- de4ce86
- Parents:
- 73cfabc
- git-author:
- quentin <quentin> (10/14/08 06:20:50)
- git-committer:
- quentin <quentin> (10/14/08 06:20:50)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gutenbach/debian/lib/sipbmp3-filter
r73cfabc rb011fb0 2 2 # Play the data on STDIN as an audio file 3 3 # 4 # $Id: sipbmp3-filter,v 1.2 2 2008-10-07 00:20:36quentin Exp $4 # $Id: sipbmp3-filter,v 1.23 2008-10-14 10:20:50 quentin Exp $ 5 5 # $Source: /tmp/tmp.UFBNno9997/RCS/sipbmp3-filter,v $ 6 6 # … … 74 74 @ARGV = @NEWARGV; 75 75 76 printf(STDERR Dumper(\%opts)); 77 76 78 # Status messages at start of playback 77 79 open(ZEPHYR, '|/usr/athena/bin/zwrite -d -n -c sipb-auto -i ' . … … 95 97 elsif ($opts{'C'} eq 'Z') { 96 98 $filepath = resolve_external_reference($filepath, \%opts); 99 print STDERR "Resolved external reference to $filepath\n"; 97 100 printf(ZEPHYR "%s\n", $filepath); 101 close(ZEPHYR); 98 102 } 99 103 elsif (-T $filepath) { … … 102 106 exit 0; 103 107 } 104 printf(STDERR Dumper(\%opts));105 108 #printf(STDERR "Job priority %s\n", $opts{'C'}) if $opts{'C'} eq 'Z'; 106 109 #printf(ZEPHYR "Job priority %s\n", $opts{'C'}) if ($opts{'C'} && ($opts{'C'} ne 'A')); … … 129 132 print ZEPHYR 130 133 "Unknown Content-Type $contenttype for URI $uri\n"; 131 close(ZEPHYR);132 134 } 133 135 } else { 134 136 print ZEPHYR "Couldn't read URI for external reference\n"; 135 close(ZEPHYR);136 137 return $filepath; 137 138 } … … 227 228 open(STDIN, "/dev/null"); 228 229 #print STDERR Dumper([qw|/usr/bin/mplayer -nolirc -ao alsa -quiet|, $filepath]); 229 exec(qw|/usr/bin/mplayer -nolirc -ao alsa -really-quiet|, $filepath) || 230 my @args = (qw|/usr/bin/mplayer -vo null -nolirc -ao alsa -cache 512 -really-quiet|, $filepath); 231 #print STDERR "About to exec: ", Dumper([@args]); 232 exec(@args) || 230 233 die "Couldn't exec"; 231 234 }
Note: See TracChangeset
for help on using the changeset viewer.