SunVideo Plus for PCI User's Guide

Audio Looping

The olk_audloop program is a command-line driven tool used to loop audio IN to audio OUT.

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


hostname% o1k_audloop options

The following table describes command options and the default setting.

Table 4-4 o1k_audloop 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

-v gain

Output gain (0 .. 1.0) 

1.0

-b size

Buffer size 

1000