guineawheek / olwtools

Automatically exported from code.google.com/p/olwtools
0 stars 0 forks source link

Increase/decrease volume from terminal #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run volwheel -i or volwheel -d from terminal
2.
3.

What is the expected output? What do you see instead?

The program increase or decrease the volume once, then if y run again the 
command the program returns:

"Use of uninitialized value $multiplicator in multiplication (*) at 
/usr/local/bin/volwheel line 83." (or 94 if decrease)

What version of the product are you using? On what operating system?
i run volwheel 

Please provide any additional information below.

i make the following:
in the sub "volup" and "voldown" i asigned 1 to the $multiplicator. This fix 
the error...for now (sorry i'm not a perl programmer.. :S).

Original issue reported on code.google.com by juanpabl...@gmail.com on 25 Sep 2010 at 11:38

GoogleCodeExporter commented 9 years ago
Sorry i submit the issue with errors :$

i run volwheel v0.2.8 in Debian Squeeze

Original comment by juanpabl...@gmail.com on 25 Sep 2010 at 11:40

GoogleCodeExporter commented 9 years ago
It's just that

my $multiplicator = 1;

is defined after

elsif ($ARGV[0] eq "-i" || $ARGV[0] eq "--increase")  { volup()   }

Original comment by carlosjo...@gmail.com on 5 Jan 2011 at 2:26

GoogleCodeExporter commented 9 years ago
Fixed in svn!
Tnanks for the report.

Original comment by olivier....@gmail.com on 11 Jun 2012 at 11:31