Subject: | bugs in sample code |
There are some bugs in the sample code.
On line 8 one of the double quotes is missing.
On line 6, get_supported_formats should be get_supported_fmts.
Line 3 didn't work on my system. Instead, I had to do this: use
IO::File;my $dsp = new IO::File("</dev/dsp");
There is a set_stereo() function, but as far as I could tell there was
no way to set the number of channels to 1 (mono).