EasyManua.ls Logo

Townshend Computer Tools DAT-Link - Page 189

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...
NETAUDIO(3) 185
i
communicates directly with the DAT-Link to temporarily free the DAT-Link device.
nt NAResumeServer(unit)
int unit;
This convenience routines resumes the NetAudio server previously paused using
i
NAPauseServer().
nt NAWrite(port,buffer,buflen)
c
NAport port;
onst char buffer;
int buflen;
Write samples to the NetAudio server and ultimately to the DAT-Link device. A data connec-
s
tion to the server must be opened using NAOpenData() before using this routine. Samples
hould be stored in buffer as 16 bit shorts with the most-significant-byte first. Stereo data
f
d
should be interleaved starting with the left channel. Buflen indicates the number of bytes o
ata to transfer. NAWrite() will always write the requested number of bytes unless a transfer
w
error occurs such as a DAT-Link underrun, in which case the number of bytes actually written
ill be returned. A -1 return value indicates that the data channel was not open when
i
NAWrite() was called.
nt NARead(port,buffer,buflen)
c
NAport port;
har buffer;
int buflen;
Read samples from the NetAudio server and ultimately from the DAT-Link device. A data
-
p
connection to the server must be opened using NAOpenData() before using this routine. Sam
les will be stored in buffer as 16 bit shorts with the most-significant-byte first. Stereo data
a
t
will be interleaved starting with the left channel. Buflen indicates the number of bytes of dat
o transfer. Note that NARead() may read less than the requested number of bytes (but at least
s
one byte), even if no error has occurred. This is consistent with the definition of the read(2)
ystem call. A return value of 0 indicates that a transfer error has occurred, while a -1 return
SEE ALSO
value indicates that the data channel is not open for reading.
na_event(3), na_remote(3), na_info(3), netaudiod(8)
N
DAT-Link User’s Manual.
etAudio Reference Last change: 1993/11/11 4

Table of Contents