184 NETAUDIO(3)
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
l
structures specify points on the magnitude response. The frequency values are in Hertz and the
evels are in dB. Attenuation should be specified as negative levels.
N
int NASerialRead(port,unit,buf,nbytes)
Aport ∗port;
c
int unit;
har ∗buf;
;int nbytes
Read nbytes of data from the DAT-Link’s serial port unit number unit and store the data in
i
buf. This can be used to read data from an ES-Bus device.
nt NASerialWrite(port,unit,buf,nbytes)
i
NAport ∗port;
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
i
used to write data to an ES-Bus device.
nt NAGetServerVersion(port)
NAport ∗port;
Get version number of NetAudio running on server. The return value is encoded in an integer.
i
For example, revision 2.16 will be returned as 2016.
nt NAServer(port,op)
N
NAport ∗port;
AserverOps ∗op;
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
l
N
directly. All subsequent access to the server will be blocked unti
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.
i
int NAPauseServer(unit)
nt unit;
This convenience routines opens a connection to the given NetAudio server and causes it to
-
g
paused as described in NAServer() above. The server will be released when the calling pro
ram exits or when NAResumeServer() is called. This routine can be used by a program that