EasyManua.ls Logo

Townshend Computer Tools DAT-Link - Page 187

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) 183
u
float VULevelRight;
nsigned int sampleNumber; / Current sample number at input or output /
}
unsigned int buffered; / Number of samples of buffered data /
NAsnapshot;
{typedef struct
NAsnapshot pb; / Playback snapshot /
}
NAsnapshot rec; / Record snapshot /
NAsnapshots;
Snapshots can also be generated as part of NA_SNAPSHOT events. See na_event(3) for
i
details.
nt NAPause(port,playrec,pause)
i
NAport port;
nt playrec;
int pause;
Pause or resume transfers. playrec should be NA_PLAY or NA_RECORD to pause playback
e
t
or recording respectively. The pause argument is non-zero to pause transfers, zero to resum
hem.
int NABegin(port,playrec)
i
NAport port;
nt playrec;
Force transfers to/from the digital audio IO’s to begin. This routine must be called before
e
t
using NARead() to retrieve samples during recording. For playback, it’s use its optional sinc
ransfers to the digital audio outputs will begin automatically once the DAT-Link’s internal
n
buffers are full. Also, NADrain() and NACloseData() automatically initiate playback if it has
ot already begun. Note that due to a limitation of the SCSI driver’s on most computer, the
s
c
last 512 bytes of data may not be sent to the DAT-Link until NADrain() or NACloseData() i
alled. Thus, if only a small amount of data is being sent, NABegin() should NOT be called or
i
the DAT-Link may underrun before the last 512 bytes can be sent.
nt NADrain(port)
NAport port;
Force playback to begin if it has not already and then allow buffered samples to drain during
l
a
playback. This routine will not return until all buffered data has been output to the digita
udio outputs. If all is well, NADrain() will return 0, if a server communication error occurs
(
-1 will be returned, and, if a transfer error such as an underrun occurred, the transfer error code
see na_info(3) ) will be returned.
N
int NAFlush(port,playrec)
Aport port;
int playrec;
Flush (delete) any buffered data for transfers in the given direction.
N
int NASetFilter(port,filter)
Aport port;
;const NAfilter filter
Setup the specifications for filtering during conversion of audio data by the DAT-Link. This
t
structure of the filter argument is:
ypedef struct {
N
float atten;
etAudio Reference Last change: 1993/11/11 2

Table of Contents