dd environment variable for default mixer device.
This commit is contained in:
parent
5749437b03
commit
19c8dd08ce
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: mixerctl.1,v 1.4 1997/10/19 05:09:35 lukem Exp $
|
||||
.\" $NetBSD: mixerctl.1,v 1.5 1998/04/27 16:52:03 augustss Exp $
|
||||
.\" Copyright (c) 1997 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
.\"
|
||||
|
@ -89,6 +89,10 @@ are shown in {}.
|
|||
.It Pa /dev/mixer
|
||||
mixer audio device
|
||||
.El
|
||||
.Sh ENVIRONMENT
|
||||
.Bl -tag -width MIXERUNIT
|
||||
.It Pa MIXERUNIT
|
||||
the mixer device to use.
|
||||
.Sh SEE ALSO
|
||||
.Xr audioctl 1 ,
|
||||
.Xr audio 4 ,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mixerctl.c,v 1.9 1997/10/19 07:46:04 augustss Exp $ */
|
||||
/* $NetBSD: mixerctl.c,v 1.10 1998/04/27 16:52:03 augustss Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 The NetBSD Foundation, Inc.
|
||||
|
@ -214,12 +214,16 @@ main(argc, argv)
|
|||
{
|
||||
int fd, i, j, ch, pos;
|
||||
int aflag = 0, wflag = 0, vflag = 0;
|
||||
char *file = "/dev/mixer";
|
||||
char *file;
|
||||
char *sep = "=";
|
||||
mixer_devinfo_t dinfo;
|
||||
mixer_ctrl_t val;
|
||||
int ndev;
|
||||
|
||||
file = getenv("MIXERUNIT");
|
||||
if (file == 0)
|
||||
file = "/dev/mixer";
|
||||
|
||||
prog = *argv;
|
||||
|
||||
while ((ch = getopt(argc, argv, "af:nvw")) != -1) {
|
||||
|
|
Loading…
Reference in New Issue