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 760387 - Update SourceOutput volume and mute status
Update SourceOutput volume and mute status
Status: RESOLVED FIXED
Product: libgnome-volume-control
Classification: Other
Component: general
git master
Other Linux
: Normal enhancement
: ---
Assigned To: libgnome-volume-control-maint
libgnome-volume-control-maint
Depends on:
Blocks:
 
 
Reported: 2016-01-10 02:34 UTC by Carlos Silva
Modified: 2016-01-12 01:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
source-sink-volume-mute-fix.patch (3.57 KB, patch)
2016-01-10 02:34 UTC, Carlos Silva
none Details | Review
Update-volume-and-mute-status.patch (1.47 KB, patch)
2016-01-10 02:43 UTC, Carlos Silva
none Details | Review
0001-Update-volume-and-mute-status.patch (1.47 KB, patch)
2016-01-10 02:45 UTC, Carlos Silva
none Details | Review
0002-Update-PA-about-volume-and-mute-status-changes.patch (2.84 KB, patch)
2016-01-10 02:45 UTC, Carlos Silva
none Details | Review
gvc-mixer-source-output: Update volume and mute status (4.15 KB, patch)
2016-01-12 00:41 UTC, Bastien Nocera
committed Details | Review

Description Carlos Silva 2016-01-10 02:34:53 UTC
Created attachment 318629 [details] [review]
source-sink-volume-mute-fix.patch

Working with GVC to the Budgie Desktop project from Solus I noticed that the SourceOutput class wasn't implementing the change_is_muted and the change_push_volume functions as well as not getting notifications as to when this two values were updated.

This patch fix both problems.
Comment 1 Carlos Silva 2016-01-10 02:43:44 UTC
Created attachment 318630 [details] [review]
Update-volume-and-mute-status.patch
Comment 2 Carlos Silva 2016-01-10 02:45:24 UTC
Created attachment 318631 [details] [review]
0001-Update-volume-and-mute-status.patch
Comment 3 Carlos Silva 2016-01-10 02:45:58 UTC
Created attachment 318632 [details] [review]
0002-Update-PA-about-volume-and-mute-status-changes.patch
Comment 4 Bastien Nocera 2016-01-10 08:59:50 UTC
(In reply to Carlos Silva from comment #0)
<snip>
> This patch fix both problems.

What does this actually fix?
Comment 5 Carlos Silva 2016-01-10 14:26:14 UTC
(In reply to Bastien Nocera from comment #4)
> 
> What does this actually fix?


Not being able to update the volume and mute status from SourceOutput streams as well as not being notified about those changes from and outside aplication
Comment 6 Bastien Nocera 2016-01-12 00:41:16 UTC
Created attachment 318832 [details] [review]
gvc-mixer-source-output: Update volume and mute status

This commit implements notifying about volume and mute status changes
for source outputs (applications that monitor the microphone, in short).
Comment 7 Bastien Nocera 2016-01-12 00:45:09 UTC
I've updated the patch to match what I would expect it to look like, but I still don't understand why you'd want to change the volume, or monitor the volume of sources monitoring the microphone.

Or do you have another use for this feature? In which case, I'd like to hear it, and that's also what I was asking in comment 4.
Comment 8 Carlos Silva 2016-01-12 01:01:42 UTC
Oh! So you want a big patch with all the changes in it? I can do that too (I just used git format-patch)


The use case is a system volume manager where you can control all the volumes of all the streams (same as pavucontrol does). Since we'll be showing the "input" streams too, it just seems natural that you could control those volumes too (since you actually can, not just with something based on gvc).


[offtopic]
I actually have a few more patches coming in (not related to this), but wanted to discuss them with you. Do you hand around IRC or something?
Comment 9 Bastien Nocera 2016-01-12 01:07:29 UTC
(In reply to Carlos Silva from comment #8)
> Oh! So you want a big patch with all the changes in it? I can do that too (I
> just used git format-patch)
> 
> 
> The use case is a system volume manager where you can control all the
> volumes of all the streams (same as pavucontrol does). Since we'll be
> showing the "input" streams too, it just seems natural that you could
> control those volumes too (since you actually can, not just with something
> based on gvc).

I really don't see that as useful, but seeing as that backend code is getting reused.

> [offtopic]
> I actually have a few more patches coming in (not related to this), but
> wanted to discuss them with you. Do you hand around IRC or something?

Filing bugs is probably a better way to discuss patches that exist. #control-center on GNOME IRC otherwise.
Comment 10 Bastien Nocera 2016-01-12 01:07:54 UTC
Attachment 318832 [details] pushed as d4eda71 - gvc-mixer-source-output: Update volume and mute status