sad

simple audio daemon
git clone git://git.2f30.org/sad
Log | Files | Refs | LICENSE

commit 290e5ecb3898b0b2e3d062b2f3870b3806ac9f01
parent 4464316187a2b41156437b5f5c3ed009edfeede1
Author: sin <sin@2f30.org>
Date:   Sat, 27 Dec 2014 14:23:06 +0000

Rename voloutput to setvol

Diffstat:
Mcmd.c | 2+-
Moutput.c | 2+-
Msad.h | 2+-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/cmd.c b/cmd.c @@ -32,7 +32,7 @@ cmdvolume(int fd, char *arg) dprintf(fd, "ERR volume should be between [0, 100]\n"); return; } - if (voloutput(vol) < 0) { + if (setvol(vol) < 0) { dprintf(fd, "ERR failed to change volume\n"); return; } diff --git a/output.c b/output.c @@ -107,7 +107,7 @@ playoutput(void *buf, size_t nbytes) } int -voloutput(int vol) +setvol(int vol) { Outputdesc *desc; int i, r = 0; diff --git a/sad.h b/sad.h @@ -95,5 +95,5 @@ int openoutputs(void); int closeoutput(const char *); int closeoutputs(void); int playoutput(void *, size_t); -int voloutput(int); +int setvol(int); void setinputfmt(int, long, int);