Townshend Computer Tools DAT-Link User Manual page 188

Table of Contents

Advertisement

184
struct {
unsigned int frequency_len;
float ∗frequency_val;
}
frequency;
struct {
unsigned int level_len;
float ∗level_val;
} level
;
}
NAfilter;
The atten field indicates the minimum anti-aliasing attenuation in dB. The frequency and level
structures specify points on the magnitude response. The frequency values are in Hertz and the
l
evels are in dB. Attenuation should be specified as negative levels.
int NASerialRead(port,unit,buf,nbytes)
Aport ∗port;
N
int unit;
har ∗buf;
c
int nbytes
;
Read nbytes of data from the DAT-Link's serial port unit number unit and store the data in
buf. This can be used to read data from an ES-Bus device.
i
nt NASerialWrite(port,unit,buf,nbytes)
NAport ∗port;
i
nt unit;
const char ∗buf;
int nbytes;
Write nbytes of data stored in buf to the DAT-Link's serial port unit number unit. This can be
used to write data to an ES-Bus device.
i
nt NAGetServerVersion(port)
NAport ∗port;
Get version number of NetAudio running on server. The return value is encoded in an integer.
For example, revision 2.16 will be returned as 2016.
i
nt NAServer(port,op)
NAport ∗port;
AserverOps ∗op;
N
This routine allows a program to exert some control over the server's global operations. The
possible values of the op argument are:
NA_KILLSERVER
Instruct the server to immediately exit.
NA_PAUSESERVER
The server will release the DAT-Link device so that it can be opened by a user program
directly.
N
A_RESUMESERVER is executed or the program which paused the server exits.
NA_RESUMESERVER
Resume normal server operations after re-opening the DAT-Link device.
int NAPauseServer(unit)
i
nt unit;
This convenience routines opens a connection to the given NetAudio server and causes it to
paused as described in NAServer() above. The server will be released when the calling pro
g
ram exits or when NAResumeServer() is called. This routine can be used by a program that
All
subsequent
access
to
NETAUDIO(3)
the
server
will
be
blocked
unti
l
-

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DAT-Link and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents