playbin2 with pulseaudio sets volume to 100%

Bug #511589 reported by Alexander E. Patrakov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Decibel Audio Player
Fix Released
Undecided
Anonym25712

Bug Description

To reproduce:

 * install pulseaudio (on my computer, this is 0.9.21)

 * make sure that the flat-volume mode is used (this is the default)

 * install decibel-audio-player (on my computer, this is 1.0.2). You may also want to erase the volume database from the .pulse directory.

 * run: decibel-audio-player --playbin2 (wanted to try gapless playback)

 * play any mp3 or flac file

Result: the first time I start decibel-audio-player, pulseaudio sets the stream volume to 100%, and, since in the flat-volume mode the device volume is equal to the maximum of the stream volumes, sets the device (i.e. hardware) volume to 100%. On my computer, that's way too loud (bug already reported, see http://www.pulseaudio.org/ticket/774 ).

I can control this stream volume with the player with the volume control in the main window, and pulseaudio seems to remember that. However, due to the cubic mapping described in https://bugzilla.gnome.org/show_bug.cgi?id=571610 , the volume percentage disagrees with that displayed with a pulse-native tool, and on my hardware the usable volume range (according to the decibel-audio-player control) is 0-5%. Also, since both pulseaudio and decibel-audio-player know how to restore volumes, there may be a race.

Expected result: decibel-audio-player should either provide a usable volume control or none at all, when started with --playbin2, and no "too loud" surprises.

In my opinion, this bug is not in decibel-audio-player, but elsewhere (in gstreamer or even in the concept of flat-volume mode itself). The main trigger is that "pulseaudio in flat-volume mode" changes the meaning of the playbin2 volume: with all other output systems, playbin2 controls the relative volume as compared to other streams, while with pulseaudio in flat-volume mode, the absolute volume is what's controlled and loaded/saved by decibel-audio-player. This is wrong.

However, because this bug is supposed by third parties to be a necessary consequence of existing "good" features, I think that it is a good idea to remove the volume control from decibel-audio-player UI when it is started with --playbin2, and not attempt to control the volume in this mode at all.

Revision history for this message
Audio Bugs (tomenow2009) wrote :

Highlights: Insert a GSM SIM card into the slot and put the audio bug at hidden place,then dial the card number to monitor your target,you will hear...
http://www.spygadgetshop.co.uk/spy-audio-bugs-c-24.html

Revision history for this message
Anonym25712 (anonym25712) wrote :

Fixed on trunk. Volume button is hidden when using both playbin2 and pulseaudio.

Changed in decibel-audio-player:
assignee: nobody → François Ingelrest (athropos)
status: New → Fix Committed
Revision history for this message
Anonym25712 (anonym25712) wrote :

See v1.07

Changed in decibel-audio-player:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.