48 NetAudio Server
interest, usually 0. For example, if you are using
csh
, then the command:
1
setenv AUDIO_DEVICE foo:0
would instruct all client programs to use the unit 0 NetAudio server on the host
named
foo
. By adding the ab ove
setenv
command to your
.cshrc
le, you can b e
certain to connect to the same NetAudio server each time you log in.
Another way to sp ecify which server to connect to is to use the
-u
option available
in each NetAudio client program. Setting this option overrides any value set for
AUDIO DEVICE
. For example, to check the
DAT-Link
version connected to host
snoopy
at unit 1, one could use the command:
naversion -u snoopy:1
The
naversion
client program is describ ed in App endix 10.1.
3.3 Programs that Bypass the Server
Although most of the commonly used
DAT-Link
programs op erate as clients to the
NetAudio server, there are a few that require a direct connection to the
DAT-Link
.
These programs are the test program,
dltest
(See Section 2.7.1), and the remote
control training program,
rctrain
(See Section 2.7.2 and 8.1). These programs
must b e run on the host with the
DAT-Link
connected. Also, since only one pro-
gram can directly communicate with the
DAT-Link
at a time, these programs will
temporarily susp end the NetAudio server while they are running. Any transfers in
progress will b e aborted. When the program completes, the server will be resumed
with all internal settings, such as gain and sampling rate, reset to their defaults.
3.4 Terminating the Server
If it becomes necessary to terminate the server, the
nakillserver
command can b e
used. This program will rst request that the user conrms that the server should
be killed. Once killed,
naserver
must b e restarted as described above b efore any
other NetAudio programs can be used. Note that
nakillserver
does not provide
any access verication; any user on the lo cal area network can terminate the server
with this command.
1
The equivalent for
sh
or
ksh
users is \
AUDIO DEVICE=foo:0; export AUDIO DEVICE;
".