Changeset a041c73 for gutenbach/debian
- Timestamp:
- Feb 19, 2009, 7:27:17 PM (16 years ago)
- Branches:
- master, debian, mac, no-cups, nodebathena, web
- Children:
- 6d813c3
- Parents:
- 908107d
- git-author:
- geofft <geofft> (02/19/09 19:27:17)
- git-committer:
- geofft <geofft> (02/19/09 19:27:17)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gutenbach/debian/lib/sipbmp3-filter
r908107d ra041c73 2 2 # Play the data on STDIN as an audio file 3 3 # 4 # $Id: sipbmp3-filter,v 1.2 5 2009-02-09 00:07:49geofft Exp $4 # $Id: sipbmp3-filter,v 1.26 2009-02-20 00:27:17 geofft Exp $ 5 5 # $Source: /tmp/tmp.UFBNno9997/RCS/sipbmp3-filter,v $ 6 6 # … … 96 96 printf(ZEPHYR "%s\n", $fileinfo->{$key}) if exists $fileinfo->{$key}; 97 97 } 98 my $tempdir = tempdir(); 99 my $newpath = $tempdir . '/' . basename($opts{'J'}); 100 symlink($filepath, $newpath); 101 $filepath = $newpath; 98 102 } 99 103 elsif ($opts{'C'} eq 'Z') { … … 108 112 exit 0; 109 113 } 114 110 115 #printf(STDERR "Job priority %s\n", $opts{'C'}) if $opts{'C'} eq 'Z'; 111 116 #printf(ZEPHYR "Job priority %s\n", $opts{'C'}) if ($opts{'C'} && ($opts{'C'} ne 'A')); 112 117 close(ZEPHYR); 113 118 play_mplayer_audio($filepath, \%opts); 119 120 if ($magic) { 121 unlink($newpath); 122 rmdir($tempdir); 123 } 114 124 115 125 # Play an external stream reference … … 208 218 } 209 219 210 my $tempdir = tempdir();211 my $newpath = $tempdir . '/' . basename($opts{'J'});212 symlink($filepath, $newpath);213 220 if ($pid) { #parent 214 221 # Check if there were any errors … … 225 232 226 233 close(ZEPHYR); 227 unlink($newpath);228 rmdir($tempdir);229 234 } 230 235 else { # child … … 235 240 open(STDIN, "/dev/null"); 236 241 #print STDERR Dumper([qw|/usr/bin/mplayer -nolirc -ao alsa -quiet|, $filepath]); 237 my @args = (qw|/usr/bin/mplayer -vo null -nolirc -ao alsa -cache 512 -really-quiet|, $ newpath);242 my @args = (qw|/usr/bin/mplayer -vo null -nolirc -ao alsa -cache 512 -really-quiet|, $filepath); 238 243 #print STDERR "About to exec: ", Dumper([@args]); 239 244 exec(@args) ||
Note: See TracChangeset
for help on using the changeset viewer.