home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 April
/
CMCD0404.ISO
/
Software
/
Complet
/
emovix
/
eMovix-0.9.0pre1_Setup.exe
/
{app}
/
src
/
movix
/
mixer.pl
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS
UTF-8
Wrap
Perl Script
|
2003-06-26
|
274 b
|
12 lines
#!/usr/bin/perl
$card=0;
# If the AUDIO variable is set to an integer, use that as the card number
if ($ENV{"AUDIO"} =~ /^\d+$/) {
$card = $ENV{"AUDIO"};
}
sleep(15);
$command = -e "/proc/asound/card$card" ? "/usr/bin/alsamixer -c $card" : "/bin/sh";
system "$command";