mario0alberto1 / gnome-mplayer

Automatically exported from code.google.com/p/gnome-mplayer
0 stars 0 forks source link

Default volume setting is ignored #676

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Change Edit->Preferences->Player->Default Volume Level to 5
2. Restart gnome-mplayer
3. Play any audio file

What is the expected output? What do you see instead?
mplayer is always launched with '-volume 100' option. It should be '-volume 5'

What version of the product are you using? On what operating system?
1.0.8
Tiny Core Linux

Please provide any additional information below.
gnome-mplayer '--volume' option is also ignored.

Note that 'Mplayer Sofware Volume Control' is not enabled.

Original issue reported on code.google.com by amatco...@gmail.com on 10 Apr 2013 at 9:37

GoogleCodeExporter commented 8 years ago
I don't see a Edit->Preferences->Player->Default Volume Level in my code are 
you sure you are running 1.0.8?

I just checked the code and made some fixes to SVN (r2426) that should allow 
the --volume option to work properly with and without softvol being enabled. Be 
careful with this as setting --volume 100 will run your audio system at max 
volume for all audio if softvol is not enabled. If you are using headphones 
this could hurt your ears.

Original comment by kdeko...@gmail.com on 11 Apr 2013 at 1:40

GoogleCodeExporter commented 8 years ago
Thanks for fast reply.

'Edit->Preferences->Player->Default Volume Level' is displayed when you compile 
without alsa development files or with "--without-alsa" option in configure 
script.
You can see the code here:
http://code.google.com/p/gnome-mplayer/source/browse/trunk/src/gui.c#5812

Now (r2426) with "--volume" option it works fine but does not if I set it into 
'Default Volume Level' spin.

Original comment by amatco...@gmail.com on 11 Apr 2013 at 7:18

GoogleCodeExporter commented 8 years ago
Ok this should be fixed now in SVN. Any particular reason why you are disabling 
alsa support?

Original comment by kdeko...@gmail.com on 11 Apr 2013 at 8:30

GoogleCodeExporter commented 8 years ago
Wow, really fast...thanks for fix.

I'm disabling alsa support because mplayer from TinyCore Linux was compiled 
without alsa driver support:

$ mplayer -ao help
MPlayer SVN-r33811-snapshot-4.4.3 (C) 2000-2011 MPlayer Team
Available audio output drivers:
        oss     OSS/ioctl audio output
        mpegpes DVB audio output
        v4l2    V4L2 MPEG Audio Decoder output
        null    Null audio output
        pcm     RAW PCM/WAVE file writer audio output

Original comment by amatco...@gmail.com on 11 Apr 2013 at 9:34

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Oh, I forgot it... All works well now, but a minor issue remains:

Default value for volume is 0 so when running first time (i.e. configuration 
has not been saved yet) volume control is showed as muted. 100 as default value 
would be better.

Original comment by amatco...@gmail.com on 11 Apr 2013 at 9:44