CPAN::Forum
Audio-Beep - no sound with Audio::Beep
| Posted on Thu Aug 21 19:25:37 2008 by josvanr |
| no sound with Audio::Beep |
|
Hi
I'm trying to get to work Audio::Beep. I tried the example program from
the distribution (see below).
When I run the program as normal user I get
Cannot open console: Permission denied at /usr/local/share/perl/5.8.8/Audio/Beep/Linux/PP.pm line 2
+1
Audio::Beep::Linux::PP::play('Audio::Beep::Linux::PP=HASH(0x818d6d8)', 440, 100) called at
+/usr/local/share/perl/5.8.8/Audio/Beep.pm line 204
Audio::Beep::beep('undef', 'undef') called at sound2.pl line 4
so I figured maybe try as root. But when I run the program as root (from command line),
the cursor disappears for a few seconds, but I hear no sound. So the program appears
to run, but without sound.
In other applications I do have sound, and I have all volume levers of
alsamixer turned up maximally and not muted. (I also hear sound when running
a program as root.) My distro is ubuntu 8.04...
Any suggestions?
josvanr
---example program---------------------------------
#OO more musical way
use Audio::Beep;
my $beeper = Audio::Beep->new();
# lilypond subset syntax accepted
# relative notation is the default
# (now correctly implemented)
my $music = "g' f bes' c8 f d4 c8 f d4 bes c g f2";
# Pictures at an Exhibition by Modest Mussorgsky
$beeper->play( $music );
-----------------------------------------
|
| Write a response |
(0)
]