Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/usr.bin/audio/record Pull up revision 1.6 (requested by...



details:   https://anonhg.NetBSD.org/src/rev/b5ecb3e9fde4
branches:  netbsd-1-4
changeset: 469635:b5ecb3e9fde4
user:      he <he%NetBSD.org@localhost>
date:      Fri Oct 22 09:32:54 1999 +0000

description:
Pull up revision 1.6 (requested by dmcmahill):
  If not specified on the command line, attempt to fall back
  to the environment variables AUDIODEVICE (for -d) and
  AUDIOCTLDEVICE (for -C) before falling back to _PATH_* constants.

diffstat:

 usr.bin/audio/record/record.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r 3980a98cc4c6 -r b5ecb3e9fde4 usr.bin/audio/record/record.c
--- a/usr.bin/audio/record/record.c     Fri Oct 22 09:27:19 1999 +0000
+++ b/usr.bin/audio/record/record.c     Fri Oct 22 09:32:54 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: record.c,v 1.4.2.2 1999/09/27 05:28:31 cgd Exp $       */
+/*     $NetBSD: record.c,v 1.4.2.3 1999/10/22 09:32:54 he Exp $        */
 
 /*
  * Copyright (c) 1999 Matthew R. Green
@@ -173,9 +173,10 @@
        /*
         * open the audio device, and control device
         */
-       if (device == NULL)
+       if (device == NULL && (device = getenv("AUDIODEVICE")) == NULL &&
+           (device = getenv("AUDIODEV")) == NULL) /* Sun compatibility */
                device = _PATH_AUDIO;
-       if (ctldev == NULL)
+       if (ctldev == NULL && (ctldev = getenv("AUDIOCTLDEVICE")) == NULL)
                ctldev = _PATH_AUDIOCTL;
 
        audiofd = open(device, O_RDONLY);



Home | Main Index | Thread Index | Old Index