SNDRECORD(1)SNDRECORD(1)NAME
sndrecord - record a soundfile from sound-in or the DSP
SYNOPSIS
sndrecord [ options ] file
DESCRIPTION
Sndrecord records sound from either sound-in hardware or from the DSP
(if available). By default, data is taken from sound-in and placed in
the named file. Alternatively, the data may be taken from a program
running on the DSP. The default DSP program reads 16-bit-wide data in
from the DSP serial input. The resulting file may be played back using
sndplay(1).
OPTIONS-F format-code
Record samples in the specified format. Format codes are
defined in <sound/soundstruct.h>. Some examples are 1
(MULAW_8), 2 (LINEAR_8), and 3 (LINEAR_16). The default is 1
(MULAW_8). The formats supported depend on the available sound-
in hardware. This option may not be used with -d, -e, -m, or
-f.
-S sampling-rate
Record samples at the specified rate, which may be specified in
floating point. The default is 8012 (SND_RATE_CODEC). The
rates supported depend on the available sound-in hardware. This
option may not be used with -d, -e, -m, or -f.
-n channel-count
Record the specified number of channels. Typically 1 (mono) or
2 (stereo). The default is 1 (mono). The channel counts
supported depend on the available sound-in hardware. This
option may not be used with -d, -e, -m, or -f.
-d Record 16 bit data from the DSP serial input. The format of the
data saved is 16 bit linear stereo. This option may not be used
with -F, -S, or -n.
-e Record 24 bit data from the DSP serial input. The format of the
data saved is 16 bit linear stereo. This option may not be used
with -F, -S, or -n.
-m Specify that the data recorded from the DSP is emphasized. This
option may not be used with -F, -S, or -n.
-f dsp-program
Run the specified program on the DSP recording its output into
the specified sound file. This option may not be used with -F,
-S, or -n.
-w Print warning messages if an output overflow is detected.
-s size
Record at most size bytes into the output file.
-c comment
Place comment into the comment field of the output file.
-C comment-file
Place the contents of comment-file into the output file.
-h high-water-mark
Set the high water mark used by the the operating system in
wiring down memory to record into. The operating system will
try to wire down enough physical pages to reach the high water
mark.
-l low-water-mark
Set the low water mark used by the operating system. The
operating system ensures that at least this many bytes are wired
down to record into.
-D dma-size
Set the size of the buffers used by the operating system for a
unit of recording. This size must be a power of two less than
or equal to the physical page size of the machine.
-v Print out state useful for determining the internal behavior of
sndrecord. Of marginal use.
FILES
The <sound/soundstruct.h> file contains the data format codes defined
by the system.
SEE ALSOsndplay(1), sndconvert(1), sndinfo(1), sndcompress(1)BUGS
The format, sampling rate, and channel count option names do not match
their sndconvert counterparts.
NeXT Computer, Inc. August 13, 1990 SNDRECORD(1)