SunVideo Plus for PCI User's Guide

Audio Recording

The o1k_audrec program is a command-line driven tool for recording audio to a file.

The following shows the command-line syntax for the olk_audrec example:


hostname% o1k_audrec options -o filename

The following table describes command options and the default setting.

Table 4-2 o1k_audrec Options

Options 

Description and Values 

Default 

-D device

Device name 

/dev/o1k0

-f format

Encoding format 

(0=ULAW, 1=ALAW, 2=PCM8, 3=PCM16, 4=G722) 

0

-r rate

Sample rate (8000, 11025, 16000, 22050) 

8000

-c channel

Channels (1, 2) 

1

-p port

Input port (0=LINE, 1=MIC) 

0

-g gain

Input gain (0 .. 1.0) 

.125

-m mgain

Monitor gain (0 .. 1.0) 

0

-I information

Audio file string information  

""

-b size

Buffer size 

1000

-h amount

Print hash marks after amount 

0