[StreamRestore] Don't mess with channels
ClosedPublic

Authored by broulik on Apr 5 2019, 11:41 AM.

Details

Summary

Just set volume for all of them.
Otherwise when just calling setMuted, we will send the original volume struct, which might have multiple channels, with a hardcoded channel map that only has one channel. PulseAudio then refuses to write the settings.

Test Plan

I can now just setMuted(true) and it mutes notification sounds fine

Diff Detail

Repository
R994 Pulseaudio Qt Bindings
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
broulik created this revision.Apr 5 2019, 11:41 AM
Restricted Application added a project: Plasma. · View Herald TranscriptApr 5 2019, 11:41 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
broulik requested review of this revision.Apr 5 2019, 11:41 AM
drosca accepted this revision.Apr 5 2019, 11:49 AM

Please also to stable branch.

This revision is now accepted and ready to land.Apr 5 2019, 11:49 AM
This revision was automatically updated to reflect the committed changes.