bcrowell2 has asked for the wisdom of the Perl Monks concerning the following question:
Greetings, O monks,
I'm trying to get Audio::OSS working. The following are the first two lines of the code sample given in the cpan doc:
use Audio::OSS qw(:funcs :formats :mixer); my $dsp = IO::Handle->new("</dev/dsp") or die "open failed: $!";
When I run this on my system, I get this: Can't locate object method "new" via package "IO::Handle" at a.pl line 2.
Can anyone suggest what I need to do here?
TIA!
-Ben
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: code example from Audio::OSS doc fails?
by johna (Monk) on Dec 15, 2010 at 19:52 UTC | |
by bcrowell2 (Friar) on Dec 15, 2010 at 20:58 UTC | |
by johna (Monk) on Dec 15, 2010 at 21:38 UTC | |
by bcrowell2 (Friar) on Dec 15, 2010 at 23:52 UTC | |
|
Re: code example from Audio::OSS doc fails?
by atanug (Initiate) on Dec 16, 2010 at 12:09 UTC |