]> code.delx.au - pulseaudio/commit
bluetooth: Use round() to convert PA<->BT volumes
authorMikel Astiz <mikel.astiz@bmw-carit.de>
Thu, 6 Dec 2012 09:35:17 +0000 (10:35 +0100)
committerTanu Kaskinen <tanuk@iki.fi>
Wed, 19 Dec 2012 10:31:47 +0000 (12:31 +0200)
commitccc9a58dd0b63c1e5d8489e592585c5ad4955e1b
tree579361b0f1e6e8c376783a84a71086299d30dc63
parentb36686ea9af70dc1a9a7d8fdcf7fbf9cde597a74
bluetooth: Use round() to convert PA<->BT volumes

The code can be simplified since it's just trying to round the result of
the division. Note that the resulting behavior is slightly different,
specially when the volume is 0. In this case, it will remain at 0,
instead of being set to 1.
src/modules/bluetooth/module-bluetooth-device.c