From: Mark Wooding Date: Fri, 20 Jul 2018 02:06:56 +0000 (+0100) Subject: disobedience, playrtp: Have `playrtp' handle volume control. X-Git-Tag: 5.2~16 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/commitdiff_plain/af21fb6be8e226ce86b47ed923ee124e739ca48c?ds=sidebyside;hp=af21fb6be8e226ce86b47ed923ee124e739ca48c disobedience, playrtp: Have `playrtp' handle volume control. If the server is playing the audio directly, then it handles the volume control too, as before. If the server's transmitting using RTP, DisObedience /used/ to try to twiddle the volume itself. Instead, arrange for it to request volume adjustment of the running `disorder-playrtp' instance via its socket interface. This has two advantages. * Firstly, `disorder-playrtp' actually knows which audio API it's using and therefore which method for fiddling with the volume will work best. Indeed, DisObedience doesn't even have any configuration for selecting audio APIs, so it's only ever right by coincidence. On the other hand, `disorder-playrtp' has all of the necessary machinery. * Secondly, PulseAudio in particular has independent volume controls per input. DisObedience has no hope of guessing which of these is the right one for `disorder-playrtp' without help, and it's cleaner just to give the whole job to `disorder-playrtp'. ---