#!/usr/bin/perl -w # mixer-example: read all mixers on the system, if possible # Copyright (c) 2001 Cepstral LLC # Written by David Huggins-Daines # This program is free software: you may copy and modify it under the # same terms as Perl itself. use Audio::OSS qw(:funcs @DevNames); use strict; for my $i (0..7) { # Feh if ($i == 0 and ! -f "/dev/mixer0") { $i = ""; } last unless open MIXER, "> 8), "\n"; } else { print "\t$cname: ", ($l & 0xff), "\n"; } } }