]> code.delx.au - pulseaudio/commit
native: Don't save device, volume or mute of new streams.
authorTanu Kaskinen <tanu.kaskinen@digia.com>
Thu, 5 Apr 2012 13:24:48 +0000 (16:24 +0300)
committerTanu Kaskinen <tanuk@iki.fi>
Mon, 11 Jun 2012 09:32:44 +0000 (12:32 +0300)
commit9b4332eca47eb1d1750071e6f3fe99b75029f172
tree8dd7bc3ae5e18b1c23cd14bdc692c94510c2aa78
parent8fb63dd6e42456108a4db97bfab67b7d48711770
native: Don't save device, volume or mute of new streams.

Specifying the volume when creating a new stream is not an
equivalent act as setting the volume with a volume control
application. When creating a new stream, stream-restore
shouldn't save the volume, but when changing the volume,
then saving it is ok. For example, when I say
"paplay --volume=10000 somefile.wav", I mean that I want the
new stream to have volume 10000. I don't mean that also
future paplay invocations (without the --volume option)
should have that same volume.

This patch effectively reverts
546bcf3f2f9711f0d08c21c3b775994844e7e2a2.
src/pulsecore/protocol-native.c