EasyManua.ls Logo

Townshend Computer Tools DAT-Link - Na Info

Default Icon
208 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
178 NA INFO(3)
NAME
NAGetInfo, NAGetDefaultInfo, NASetInfo library routines for setting/getting NetAudio server info
DESCRIPTION
These routines allow C programs to retrieve the current status of the NetAudio server or modify the set-
d
tings. Communication is via a single C structure declared in netaudio.h. The structure, NAinfo, is
eclared as follows:
typedef struct {
float sampleRate; / Sampling rate of data stream /
c
float externalRate; / External sampling rate /
har precision; / Number of bits per sample /
c
char encoding; / Data encoding /
har channels; / Stereo/mono definition /
/
char waiting; / Process wants to transfer data
oat gain; / Gain control - 1.0 = unscaled /
/
N
float VUdecayRate; / VU decay rate in dB/second
Astate state; / State of transfers /
/
u
NAxfrError error; / Cause of transfer error
nsigned int bufferSize; / Number of bytes of buffering /
u
/ AES/EBU info /
nsigned char leftCS[24]; / Left channel status (RO for record) /
/
u
unsigned char rightCS[24]; / Right channel status (RO for record)
nsigned char user[4]; / User bits (RO for record) /
/
} NAinfosect;
Info structure /
typedef struct {
/ Fields that are repeated for playback and record /
N
NAinfosect playback;
Ainfosect record;
NAclock clock; / Clock source for playback /
/
u
unsigned char master; / 1 to become a master clock
nsigned char skipSilence; / 1 to skip silence on record /
/
unsigned char locked; / 1 if input signal present /
Info about server /
;
i
int protoMajorVersion
nt protoMinorVersion;
char hardware[16]; / Name of server hardware /
/
int hwVersion; / Server hardware version /
Fields specific to DAT-Link /
/
u
unsigned short source; / Input source
nsigned short rxstatus; / Status of AES receiver /
/
c
unsigned char loopback; / 1 to enable ramp output
har dspProgram[16]; / Name of current DSP program /
}
int dspSIOMode; / DSP32C’s serial port mode /
NAinfo;
As can be seen above, the NAinfo structure contains two identical sub-structures to describe the play-
.
T
back and recording status as well as additional values that are not dependent on the transfer direction
he fields of NAinfo and NAinfosect are described below:

Table of Contents