Subroutine Library - Townshend Computer Tools DAT-Link User Manual

Table of Contents

Advertisement

Chapter 12

Subroutine Library

In addition to to the programs described in the previous chapters,
comes with an extensive programmer's library that can be used to write your own
programs. To use the library functions from a C program, you need to include
the NetAudio header le,
include
can be found in the
software was installed. Also, you will need to add
to the list of libraries used for linking. These library le can be found in the
subdirectory. For example, if the
the following commands can be used to compile and link the program,
uses the NetAudio library:
cc -c -I/usr/local/include test.c
cc -o test test.o /usr/local/lib/libnetaudio.a \
/usr/local/lib/libsupport.a -lm
The NetAudio library function are described in detail in the manual pages included
in Appendix G. Although there are many routines, performing most functions
requires only a few of them. For example, to playback a bu er of stereo data at
8000 samples/second with a gain of 2.0, the following code segment would suce:
netaudio.h
at the beginning of your program. This le
subdirectory of the directory in which the
libnetaudio.a
DAT-Link
programs were installed in
DAT-Link
also
DAT-Link
libsupport.a
and
lib
/usr/local
,
test.c
, that

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?

Table of Contents