waverec

Record audio data

Syntax:

waverec [-8mvxy] [-a [card_num:]dev_num] [-b size]
        [-c hw_channel_bitmask[,hw_channel_bitmask...]]
        [-f frag_size] [-i 0|1] [-n num_voices] [-R value]
        [-r rate] [-t sec] [-z num_frags]

Runs on:

QNX Neutrino

Options:

-8
Use 8-bit mode instead of the default 16-bit mode.
-a [card_num:]dev_num
The card and device number to record from.
-b size
The sample size; one of 8, 16, or 32.
-c hw_channel_bitmask[,hw_channel_bitmask...]
Voice matrix configuration. The first argument is the hardware channel bitmask for application voice 1, the second is that for application voice 2, and so on, up to eight voices.
-f frag_size
The requested fragment size.
-i 0|1
(QNX Neutrino 7.0 or later) Interleave the samples. The default is 1.
-m
Record in mono instead of in stereo.
-n num_voices
The number of voices to record. The default is 2 (stereo).
-R value
Specify the SRC rate method. This value is applicable to uncommon sample rate conversion ratios where optimized methods can't be used. It can be one of the following values:
  • 0 — linear interpolation
  • 1 — 7-pt kaiser windowed
  • 2 — 20-pt remez

The default is 0.

-r rate
The rate at which to record; one of 48000, 44100 (the default), 22050, or 11025.
-t sec
The number of seconds to record (5 seconds default).
-v
Be verbose.
-x
Use the mmap plugins.
-y
(QNX Neutrino 7.0 or later) Use nonblocking mode.
-z num_frags
(QNX Neutrino 7.0 or later) Specify the number of fragments.
Note: If you specify both the -m and -n options, the one specified later is used.

Description:

The waverec utility captures (i.e., records) audio data.