Stable: 2.5.2
Development: 2.6-alpha3
Hi
i'm using Ubuntu 17.04
and MOC 2.6-alpha3
When i "allow louder than 100%" in sound settings and set volume more than 100%
my moc crash with follow message
Running the server...
Trying JACK...
Trying ALSA...
mocp: alsa.c:319: alsa_read_mixer_raw: Assertion `RANGE(0, vol, 100)' failed.
FATAL_ERROR: Server exited!
sometimes i realy need volume more than 100%
so please fix it or make variable in config enable or disable it
thanks
kmws
Thu, 2017-03-16 16:56
Permalink
Hi open64,
Hi open64,
Did you compile MOC from sources?
Similar issue fixed previously: 565
Reported to mocmaint.
Thanks
open64
Fri, 2017-03-17 13:16
Permalink
No
No
i'd install form apt-get
So I'll try compile from source
tomaszg
Thu, 2017-03-16 17:13
Permalink
MOC assumes that ALSA behaves
MOC assumes that ALSA behaves reasonably. Apparently with Pulseaudio it is not always the case. Probably MOC should call snd_mixer_selem_get_playback_volume_range() and see what's really maximum limit of volume.
As a temporary measure you may compile MOC with debug disabled, that would disable all assert checks. However MOC may misbehave as it is designed for volumes in the range 0-100.
open64
Fri, 2017-03-17 13:18
Permalink
Ok
Ok
i'll try to compile from source without debug
jcf
Fri, 2017-03-17 20:08
Permalink
Not 'How' But 'Why'
As is often the case, there are several facets to this issue, none of which at this stage seem constitute a bug. A 100% volume should represent the maximum value of which the system's configuration is capable.
I can come up with three possible explanations for why you would want to do this, but simply allowing the volume to exceed the maximum available value is not the solution to any of them. Could you explain the reason behind your requirement?
Additional notes:
tomaszg
Sat, 2017-03-18 09:12
Permalink
I don't believe it is really
I don't believe it is really the point. What matters for MOC is that ALSA can disregard "snd_mixer_selem_set_playback_volume_range" call and return values outside of this range. I don't know if it is a "feature" or a "bug" in ALSA, but (as we discussed before) MOC should be prepared to handle that.
blaze
Wed, 2017-05-31 08:06
Permalink
I believe this behavior was
I believe this behavior was introduced by Lennart at some point.
blaze
Wed, 2017-05-31 08:02
Permalink
100% is 0dB in terms of
100% is 0dB in terms of PulseAudio, it simply means that no amplification is applied to the output. The maximum is 11dB (153%). That's how PA backend for ALSA works, and I think it's a mess.