diff options
author | Dave Reisner <dreisner@archlinux.org> | 2013-01-06 22:09:39 -0500 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2013-01-06 22:09:39 -0500 |
commit | 597ef6c0d65851fb316207bd32784b49098b19cf (patch) | |
tree | 9e630effe2239dc22a3e9739186f92ec17cf5c1f | |
parent | b22f92a207f5dc1c8152a978f255605eea138d67 (diff) | |
download | mirror-ponymix-597ef6c0d65851fb316207bd32784b49098b19cf.tar.gz mirror-ponymix-597ef6c0d65851fb316207bd32784b49098b19cf.tar.bz2 mirror-ponymix-597ef6c0d65851fb316207bd32784b49098b19cf.zip |
use convenient methods for increase/decrease
-rw-r--r-- | ponymix.cc | 4 | ||||
-rw-r--r-- | pulse.cc | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -335,7 +335,7 @@ static int IncreaseVolume(PulseClient& ponymix, int, char* argv[]) { errx(1, "error: failed to convert string to integer: %s", argv[0]); } - if (!ponymix.SetVolume(*device, device->Volume() + delta)) return 1; + if (!ponymix.IncreaseVolume(*device, delta)) return 1; printf("%d\n", device->Volume()); @@ -352,7 +352,7 @@ static int DecreaseVolume(PulseClient& ponymix, int, char* argv[]) { errx(1, "error: failed to convert string to integer: %s", argv[0]); } - if (!ponymix.SetVolume(*device, device->Volume() - delta)) return 1; + if (!ponymix.DecreaseVolume(*device, delta)) return 1; printf("%d\n", device->Volume()); @@ -358,7 +358,7 @@ bool PulseClient::SetVolume(Device& device, long volume) { int success; if (device.ops_.SetVolume == nullptr) { - warnx("device does not support setting balance."); + warnx("device does not support setting volume."); return false; } |