Every change to audio stream resets application volume to 50%
Categories
(Core :: Audio/Video: Playback, defect, P2)
Tracking
()
People
(Reporter: apx.riax, Assigned: achronop)
References
Details
Attachments
(1 file)
Updated•7 years ago
|
Comment 1•7 years ago
|
||
| Assignee | ||
Comment 2•7 years ago
|
||
| Assignee | ||
Comment 3•7 years ago
|
||
| Assignee | ||
Comment 4•7 years ago
|
||
| Assignee | ||
Comment 5•7 years ago
|
||
Comment 8•7 years ago
|
||
| bugherder | ||
Updated•7 years ago
|
Comment 9•7 years ago
|
||
Backed out changeset 849f81f21979 (Bug 1515549) per achronop's request a=backout
Backout: https://hg.mozilla.org/mozilla-central/rev/485de31371e04407432d932a039cbeb40fa88727
| Assignee | ||
Comment 10•7 years ago
|
||
Thanks, I'll come up with something better. I am clearing the NI for now.
Comment 12•7 years ago
|
||
Comment 13•4 years ago
|
||
Unexpected significant increase in volume may cause hearing damage. So I suggest to increase the ticket bug too.
Comment 14•4 years ago
|
||
ticket bug bug severity
Comment 15•4 years ago
|
||
Sometimes it changes to 100%. An unintentional increase from 20% to 100% can be a big surprise.
Comment 16•4 years ago
|
||
Currently, (on my debian9 machine) application volume and device volume are also restoring to 100%. So every pause/continue causes a 20x increase. No other app or browser has this problem (at least what i use).
Comment 17•4 years ago
|
||
I ran into this issue (in some form) a couple of days ago after upgrading my system from Debian Buster to Bullseye. I use Firefox directly from Mozilla (88.0.1) and started noticing strange behavior with volume in Firefox where I had not before.
I was not willing to restore my system from a backup just to check this, so I booted my laptop, which uses the Firefox ESR (78.10.0) and compared the behavior.
It did not take long to discover what I think is the critical difference. The ESR release does not connect volume controls in various HTML5 players to the corresponding PulseAudio stream volume. Examples:
- youtube volume control
- twitter video volume control
In 78.10.0esr, adjusting either of these controls has no effect whatsoever on the PulseAudio volume control level.
In 88.0.1, adjusting either of these controls directly alters the PulseAudio volume control level for the corresponding audiostream.
This also explains the behavior in the bandcamp player widget, in which seeking/locating within a track causes a PulseAudio volume control level reset when using 88.0.1, but no change at all in 78.10.0esr (*)
I don't know who thought that it was a good idea to tie the in-browser/in-widget volume controls to the stream volume controls. In my opinion (**) this is a terrible mistake. The stream volume controls are there for the user to adjust using e.g. pavucontrol. If the browser needs to adjust the volume, it should alter its own output. Even though these streams are per-application (or, in this case, even per-tab), I think it is fundamentally wrong to assume that the controls associated with the streams (e.g. volume) are for the application to adjust. They are for the user to adjust outside of the browser (and they were before).
I also confirmed that Chrome does not do this. Its behavior is like Firefox 78.10.0esr - changing the volume level in e.g. youtube has no effect at all on the PulseAudio stream volume level.
(*) one thing I have not figured out yet is why I never saw this behavior when using 88.0.1 with my previous Debian setup. This remains a mystery.
(*) although I'm just another Firefox user, I'm not exactly a random user when it comes to audio on Linux. I'm the lead developer of Ardour, and the original author of JACK (the JACK Audio Connection Kit), as well as a contributor (long time back) to both the design and implemention of ALSA. That doesn't mean that my opinion is automatically correct (far from it!), but I am someone who does understand audio on Linux at a very, very deep level. Assuming that I've understood what is going on here, I really think someone got this design extremely wrong.
Comment 18•4 years ago
|
||
OK, continuing exploration ... my previous comment seems incorrect. I fired up 78.10.0esr on my Debian Bullseye system, and the youtube volume control does in fact control the PulseAudio stream volume, just like 88.0.1. It therefore appears that the change I've observed is between Debian versions (and thus likely PulseAudio versions). I still think the design is really wrong, but will need to dig deeper into the reasons why I don't see this on my laptop (Debian "old") with 78.10.0esr.
Comment 19•4 years ago
|
||
Another variant of the problem. While I was watching a youtube video, the mail notification sound (a really unexpected random event from an other firefox tab) exploded at a huge volume, and also temporarily amplified the video sound. Random events poke my volume settings.
Comment 20•4 years ago
|
||
Not only this design is really wrong, but they don't have any clue on how to resolve the issue.
Someone tried in the past with a commit, but broke all the audio stack and the change was reverted.
Comment 21•4 years ago
|
||
I believe this issue is the same as bug 1422637. I am going to close this. Please move the discussion to bug 1422637.
Description
•