Move volume constants into functions
ClosedPublic

Authored by nicolasfella on Apr 19 2018, 3:21 PM.

Details

Summary

Get rid of pulse include in context.h

Test Plan

KDE Connect volume control still works with correct bounds

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.
nicolasfella created this revision.Apr 19 2018, 3:21 PM
Restricted Application added a project: Plasma. · View Herald TranscriptApr 19 2018, 3:21 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
nicolasfella requested review of this revision.Apr 19 2018, 3:21 PM
drosca requested changes to this revision.Apr 19 2018, 4:34 PM

Yes, that's what I had in mind. But please make it build (MinimalVolume in header vs minimalVolume in source).

Also I think we should use "minimum" instead of "minimal", same with "maximal" -> "maximum".

This revision now requires changes to proceed.Apr 19 2018, 4:34 PM
  • Fix names

Weird, it did build for me so I didn't notice, sorry

drosca accepted this revision.Apr 19 2018, 5:32 PM

Yeah, sorry, it would actually build, but it wouldn't do what you wanted.

This revision is now accepted and ready to land.Apr 19 2018, 5:32 PM
This revision was automatically updated to reflect the committed changes.