diff options
author | Joshua Stein <jcs@cvs.openbsd.org> | 2021-02-05 17:59:34 +0000 |
---|---|---|
committer | Joshua Stein <jcs@cvs.openbsd.org> | 2021-02-05 17:59:34 +0000 |
commit | f11b1c7ac7010b25c5fc0911b8b731d76372c507 (patch) | |
tree | 61446f7388eb01d43ed7ef7382dc14c9b63feaa7 /usr.bin/sndiod | |
parent | 325dbafeba6e17ee9b3af46e77e3a8740a03de3d (diff) |
disable autovol by default and set default volume to 127
The previous behavior of automatically decreasing playback volume
when new programs start playing can be achieved with '-w on'.
ok ratchov, patrick
Diffstat (limited to 'usr.bin/sndiod')
-rw-r--r-- | usr.bin/sndiod/sndiod.8 | 11 | ||||
-rw-r--r-- | usr.bin/sndiod/sndiod.c | 6 |
2 files changed, 7 insertions, 10 deletions
diff --git a/usr.bin/sndiod/sndiod.8 b/usr.bin/sndiod/sndiod.8 index c7a28109b11..77b61d8165f 100644 --- a/usr.bin/sndiod/sndiod.8 +++ b/usr.bin/sndiod/sndiod.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sndiod.8,v 1.9 2021/02/01 07:09:37 jmc Exp $ +.\" $OpenBSD: sndiod.8,v 1.10 2021/02/05 17:59:33 jcs Exp $ .\" .\" Copyright (c) 2006-2012 Alexandre Ratchov <alex@caoua.org> .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: February 1 2021 $ +.Dd $Mdocdate: February 5 2021 $ .Dt SNDIOD 8 .Os .Sh NAME @@ -343,7 +343,7 @@ Reducing the volume in advance allows a client's volume to stay independent from the number of clients as long as their number is small enough. 18 volume units (i.e. \-6dB attenuation) allows the number of playback programs to be doubled. -The default is 118 i.e. \-3dB. +The default is 127. .It Fl w Ar flag Control .Nm @@ -355,11 +355,8 @@ option. If the flag is .Va on , then the master volume is automatically adjusted to avoid clipping. -Using -.Va off -makes sense in the rare situation where all programs lower their volumes. The default is -.Va on . +.Va off . .It Fl z Ar nframes The audio device block size in frames. This is the number of frames between audio clock ticks, diff --git a/usr.bin/sndiod/sndiod.c b/usr.bin/sndiod/sndiod.c index 23e5966d26e..c0b7862888c 100644 --- a/usr.bin/sndiod/sndiod.c +++ b/usr.bin/sndiod/sndiod.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sndiod.c,v 1.43 2021/01/29 11:21:00 ratchov Exp $ */ +/* $OpenBSD: sndiod.c,v 1.44 2021/02/05 17:59:33 jcs Exp $ */ /* * Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org> * @@ -477,11 +477,11 @@ main(int argc, char **argv) /* * global options defaults */ - vol = 118; + vol = 127; dup = 1; mmc = 0; hold = 0; - autovol = 1; + autovol = 0; bufsz = 0; round = 0; rate = DEFAULT_RATE; |