Add an environment variable for the default audio device.
This commit is contained in:
parent
af3e9a7144
commit
5749437b03
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: audioctl.1,v 1.5 1997/10/18 12:05:22 lukem Exp $
|
||||
.\" $NetBSD: audioctl.1,v 1.6 1998/04/27 16:48:59 augustss Exp $
|
||||
.\" Copyright (c) 1997 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
.\"
|
||||
@ -90,8 +90,12 @@ or
|
||||
.Sh FILES
|
||||
.Bl -tag -width /dev/audioctl
|
||||
.It Pa /dev/audioctl
|
||||
audio device
|
||||
audio control device
|
||||
.El
|
||||
.Sh ENVIRONMENT
|
||||
.Bl -tag -width AUDIOCTLUNIT
|
||||
.It Pa AUDIOCTLUNIT
|
||||
the audio control device to use.
|
||||
.Sh SEE ALSO
|
||||
.Xr mixerctl 1 ,
|
||||
.Xr audio 4 ,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ctl.c,v 1.12 1997/10/19 07:44:12 augustss Exp $ */
|
||||
/* $NetBSD: ctl.c,v 1.13 1998/04/27 16:48:59 augustss Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 The NetBSD Foundation, Inc.
|
||||
@ -36,6 +36,7 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <fcntl.h>
|
||||
#include <err.h>
|
||||
#include <unistd.h>
|
||||
@ -334,9 +335,13 @@ main(argc, argv)
|
||||
int fd, i, ch;
|
||||
int aflag = 0, wflag = 0;
|
||||
struct stat dstat, ostat;
|
||||
char *file = "/dev/audioctl";
|
||||
char *file;
|
||||
char *sep = "=";
|
||||
|
||||
file = getenv("AUDIOCTLUNIT");
|
||||
if (file == 0)
|
||||
file = "/dev/audioctl";
|
||||
|
||||
prog = *argv;
|
||||
|
||||
while ((ch = getopt(argc, argv, "af:nw")) != -1) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: audioctl.1,v 1.5 1997/10/18 12:05:22 lukem Exp $
|
||||
.\" $NetBSD: audioctl.1,v 1.6 1998/04/27 16:48:59 augustss Exp $
|
||||
.\" Copyright (c) 1997 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
.\"
|
||||
@ -90,8 +90,12 @@ or
|
||||
.Sh FILES
|
||||
.Bl -tag -width /dev/audioctl
|
||||
.It Pa /dev/audioctl
|
||||
audio device
|
||||
audio control device
|
||||
.El
|
||||
.Sh ENVIRONMENT
|
||||
.Bl -tag -width AUDIOCTLUNIT
|
||||
.It Pa AUDIOCTLUNIT
|
||||
the audio control device to use.
|
||||
.Sh SEE ALSO
|
||||
.Xr mixerctl 1 ,
|
||||
.Xr audio 4 ,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: audioctl.c,v 1.12 1997/10/19 07:44:12 augustss Exp $ */
|
||||
/* $NetBSD: audioctl.c,v 1.13 1998/04/27 16:48:59 augustss Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 The NetBSD Foundation, Inc.
|
||||
@ -36,6 +36,7 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <fcntl.h>
|
||||
#include <err.h>
|
||||
#include <unistd.h>
|
||||
@ -334,9 +335,13 @@ main(argc, argv)
|
||||
int fd, i, ch;
|
||||
int aflag = 0, wflag = 0;
|
||||
struct stat dstat, ostat;
|
||||
char *file = "/dev/audioctl";
|
||||
char *file;
|
||||
char *sep = "=";
|
||||
|
||||
file = getenv("AUDIOCTLUNIT");
|
||||
if (file == 0)
|
||||
file = "/dev/audioctl";
|
||||
|
||||
prog = *argv;
|
||||
|
||||
while ((ch = getopt(argc, argv, "af:nw")) != -1) {
|
||||
|
Loading…
Reference in New Issue
Block a user