1999-09-23 19:42:06 +04:00
|
|
|
.\" $NetBSD: audiorecord.1,v 1.7 1999/09/23 15:42:06 dmcmahill Exp $
|
1999-03-26 17:02:39 +03:00
|
|
|
.\"
|
1999-03-30 18:48:49 +04:00
|
|
|
.\" Copyright (c) 1998-1999 Matthew R. Green
|
1999-03-26 17:02:39 +03:00
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. The name of the author may not be used to endorse or promote products
|
|
|
|
.\" derived from this software without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
|
|
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
|
|
.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
|
|
.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
|
|
.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
|
|
.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
1999-03-30 18:48:49 +04:00
|
|
|
.Dd March 30, 1999
|
1999-03-26 17:02:39 +03:00
|
|
|
.Dt AUDIORECORD 1
|
|
|
|
.Os NetBSD
|
|
|
|
.Sh NAME
|
|
|
|
.Nm audiorecord
|
|
|
|
.Nd record audio files
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Op Fl afhV
|
|
|
|
.Op Fl b Ar balance
|
|
|
|
.Op Fl C Ar ctl
|
|
|
|
.Op Fl d Ar device
|
|
|
|
.Op Fl e Ar encoding
|
|
|
|
.Op Fl i Ar info
|
|
|
|
.Op Fl m Ar monvol
|
|
|
|
.Op Fl P Ar precision
|
|
|
|
.Op Fl p Ar input
|
|
|
|
.Op Fl s Ar rate
|
|
|
|
.Op Fl t Ar time
|
|
|
|
.Op Fl v Ar volume
|
|
|
|
.Op files
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
1999-04-14 13:03:41 +04:00
|
|
|
program copies the audio devices to the named audiofile, or the standard
|
|
|
|
output if no file is named.
|
|
|
|
The output file will contain a Sun/NeXT audio header.
|
1999-03-26 17:02:39 +03:00
|
|
|
.Sh OPTIONS
|
|
|
|
The following options are available:
|
|
|
|
.Bl -tag -width 123456
|
|
|
|
.It Fl a
|
|
|
|
Append to the specified file, rather than overwriting.
|
|
|
|
.It Fl b
|
|
|
|
Set the balance to
|
|
|
|
.Ar balance .
|
|
|
|
This value must be between 0 and 63.
|
|
|
|
.It Fl C
|
|
|
|
Set the audio control device to be
|
|
|
|
.Ar ctl .
|
|
|
|
The default is
|
|
|
|
.Pa /dev/audioctl0 .
|
|
|
|
.It Fl d
|
|
|
|
Set the audio device to be
|
|
|
|
.Ar device .
|
|
|
|
The default is
|
|
|
|
.Pa /dev/audio0 .
|
|
|
|
.It Fl e
|
|
|
|
Set encoding to either
|
|
|
|
.Dq alaw ,
|
|
|
|
.Dq ulaw
|
|
|
|
or
|
|
|
|
.Dq linear .
|
|
|
|
.It Fl f
|
|
|
|
Force. Normally when appending to audiofiles using the
|
|
|
|
.Fl a
|
|
|
|
option, the sample rates must match. The
|
|
|
|
.Fl f
|
|
|
|
option will allow a discrepancy to be ignored.
|
|
|
|
.It Fl h
|
|
|
|
Print a help message.
|
|
|
|
.It Fl i
|
|
|
|
If the audio device cannot be opened, exit now rather than wait for it.
|
|
|
|
.It Fl m
|
|
|
|
Set the monitor volume.
|
|
|
|
.It Fl P
|
|
|
|
Set the precision. This value is the number of bits per sample, and is
|
|
|
|
normally either
|
|
|
|
.Dq 8
|
|
|
|
or
|
|
|
|
.Dq 16 ,
|
|
|
|
though the values
|
|
|
|
.Dq 24
|
|
|
|
and
|
|
|
|
.Dq 32
|
|
|
|
are also valid.
|
|
|
|
.It Fl p
|
|
|
|
Set the output port to
|
|
|
|
.Ar port .
|
|
|
|
The valid values of
|
|
|
|
.Ar port
|
|
|
|
are
|
|
|
|
.Dq speaker ,
|
|
|
|
.Dq headphone
|
|
|
|
and
|
|
|
|
.Dq line .
|
|
|
|
.It Fl s
|
|
|
|
Set the sampling rate. This value is per-second. Typical values are
|
|
|
|
8000, 44100 and 48000, which are the telephone, CD Audio and DAT Audio
|
|
|
|
default sampling rates.
|
1999-09-23 19:42:06 +04:00
|
|
|
.It Fl t
|
|
|
|
Sets the maximum amount of time to record. Format is [hh:]mm:ss.
|
1999-03-26 17:02:39 +03:00
|
|
|
.It Fl q
|
|
|
|
Be quiet.
|
|
|
|
.It Fl V
|
|
|
|
Be verbose.
|
|
|
|
.It Fl v
|
|
|
|
Set the volume (gain) to
|
|
|
|
.Ar volume .
|
|
|
|
This value must be between 0 and 255.
|
1999-03-28 14:35:05 +04:00
|
|
|
.El
|
1999-07-13 18:02:33 +04:00
|
|
|
.Sh ENVIRONMENT
|
|
|
|
.Bl -tag -width AUDIOCTLDEVICE
|
|
|
|
.It AUDIOCTLDEVICE
|
|
|
|
the audio control device to be used.
|
|
|
|
.It AUDIODEVICE
|
|
|
|
the audio device to be used.
|
|
|
|
.El
|
1999-03-26 18:46:22 +03:00
|
|
|
.Sh BUGS
|
1999-03-26 17:02:39 +03:00
|
|
|
Many audio device hardware is limited in capabilities. Any attempt
|
|
|
|
to use an audio device beyond it's capabilities will result in an
|
1999-03-26 18:46:22 +03:00
|
|
|
error. This program is not finished and will become much more
|
|
|
|
versatile in it's understanding of the audio device and the desired
|
|
|
|
output.
|
1999-03-26 17:02:39 +03:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
program was first seen in SunOS 5. The
|
|
|
|
.Nx
|
|
|
|
.Nm
|
|
|
|
was first made available in
|
|
|
|
.Nx 1.4 .
|
|
|
|
.Sh AUTHOR
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
program was written by Matthew R. Green <mrg@eterna.com.au>.
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr audioctl 1 ,
|
|
|
|
.Xr audioplay 1 ,
|
1999-03-30 18:48:49 +04:00
|
|
|
.Xr audioamd 4 ,
|
|
|
|
.Xr aria 4 ,
|
|
|
|
.Xr audio 4 ,
|
|
|
|
.Xr eap 4 ,
|
1999-07-13 18:02:33 +04:00
|
|
|
.Xr eso 4 ,
|
1999-03-30 18:48:49 +04:00
|
|
|
.Xr ess 4 ,
|
|
|
|
.Xr gus 4 ,
|
|
|
|
.Xr guspnp 4 ,
|
|
|
|
.Xr sb 4 ,
|
|
|
|
.Xr sv 4 ,
|
|
|
|
.Xr wss 4 ,
|
|
|
|
.Xr ym .
|