After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 644908 - add "PULSE_PROP_media.role" to gnome-sound-recorder
add "PULSE_PROP_media.role" to gnome-sound-recorder
Status: RESOLVED FIXED
Product: gnome-media
Classification: Deprecated
Component: Gnome-Sound-Recorder
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome media maintainers
gnome media maintainers
Depends on:
Blocks:
 
 
Reported: 2011-03-16 12:02 UTC by Rodrigo Moya
Modified: 2012-06-06 14:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
The patch (776 bytes, patch)
2011-03-16 12:04 UTC, Rodrigo Moya
none Details | Review
grecord: add "PULSE_PROP_media.role" (852 bytes, patch)
2012-06-06 11:52 UTC, Oleksij Rempel
rejected Details | Review
screenshot (133.51 KB, image/png)
2012-06-06 13:08 UTC, Oleksij Rempel
  Details
grecord: add "PULSE_PROP_media.role" (853 bytes, patch)
2012-06-06 13:14 UTC, Oleksij Rempel
committed Details | Review

Description Rodrigo Moya 2011-03-16 12:02:17 UTC
The sound recorder needs to set its role inside PulseAudio so that the volume UIs can set the record level for the application (as stated in http://pulseaudio.org/wiki/ApplicationProperties).

Attached patch sets the value for the PULSE_PROP_media.role environment variable
Comment 1 Rodrigo Moya 2011-03-16 12:04:22 UTC
Created attachment 183533 [details] [review]
The patch
Comment 2 Oleksij Rempel 2012-06-06 11:46:56 UTC
initial report: https://bugs.launchpad.net/ubuntu/+source/gnome-media/+bug/736042
Comment 3 Oleksij Rempel 2012-06-06 11:52:55 UTC
Created attachment 215732 [details] [review]
grecord: add "PULSE_PROP_media.role"

Signed-off-by: Oleksij Rempel <bug-track@fisher-privat.net>
Comment 4 Marc-Andre Lureau 2012-06-06 12:14:01 UTC
Review of attachment 215732 [details] [review]:

::: grecord/src/gnome-recorder.c
@@ +194,1 @@
 

please follow the project / GNOME coding style, add missing space before parenthesis.
Comment 5 Marc-Andre Lureau 2012-06-06 12:14:55 UTC
Review of attachment 215732 [details] [review]:

also the patch author should be Rodrigo Moya <rodrigo@gnome-db.org>, since he wrote it.
Comment 6 Marc-Andre Lureau 2012-06-06 12:17:36 UTC
hmm, apparently you are actually the author of the patch, if I follow launchpad.

Btw, what does that solve exactly?

I see a problem there because, the recorder streams can be both playback & recording and I am not sure they should be the same role.
Comment 7 Oleksij Rempel 2012-06-06 13:08:50 UTC
Created attachment 215739 [details]
screenshot

Easies way to explain is to show :)

To notify volume applet to show recording level control, we need to set some
role: phone or production.

And second reason is, phone role allowed to mute all other roles but not production.
Comment 8 Oleksij Rempel 2012-06-06 13:14:09 UTC
Created attachment 215740 [details] [review]
grecord: add "PULSE_PROP_media.role"

v2: add missing space before parenthesis

Signed-off-by: Oleksij Rempel <bug-track@fisher-privat.net>
Comment 9 Marc-Andre Lureau 2012-06-06 13:15:14 UTC
(In reply to comment #7)
> To notify volume applet to show recording level control, we need to set some
> role: phone or production.
> 
> And second reason is, phone role allowed to mute all other roles but not
> production.

Right, but what about playback stream? Should it be tagged as production role too?
Comment 10 Oleksij Rempel 2012-06-06 13:18:03 UTC
According to:
http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/Developer/Clients/ApplicationProperties
...
"video": for movie/video streams from media players
"music": for music streams from media players
"game": for audio from games
"event": for event sounds (i.e. button clicks, ...)
"phone": for phone data (i.e. voip speech audio)
"animation": for animations (i.e. Flash)
"production": for audio production applications.
"a11y": accessibility applications (i.e. screen readers, ...) 
...

grecord is production application, independent of playback or record.
Comment 11 Marc-Andre Lureau 2012-06-06 14:12:21 UTC
Review of attachment 215740 [details] [review]:

ack

thanks for the pointer (that link could also be in the commit message)
Comment 12 Oleksij Rempel 2012-06-06 14:23:50 UTC
Comment on attachment 215740 [details] [review]
grecord: add "PULSE_PROP_media.role"

Attachment 215740 [details] pushed as 5453719 - grecord: add "PULSE_PROP_media.role"
Comment 13 Oleksij Rempel 2012-06-06 14:25:32 UTC
you will need to close this bug. I do not have rights for this.