User guide
98 CHAPTER 3. THE LIBRARY
3.11 The Sound Lib ra r y
This library is under development
The sound library uses the sys(Sys
sound,...) fun ct i ons to provide facilities for
reading, writing and analysing sound data. There is a sound header file (g/sound.h)
declaring various constants and globals available in the sound librar y. The sound li b r ary
itself is in g/sound.b and can be inserted into a program by the following statements.
GET "libhdr"
MANIFEST { g_sndbase=nnn } // Only used if the default setting of 400 in
// libhdr is not suitable.
GET "sound.h"
GET "sound.b" // Insert the library source code
The manifest constant g
sndbase specifies the position of the first global variable to
be used by the sound library.
3.11.1 The Sound Constants
The sound library is not yet available.
3.11.2 The Sound Global Variables
The sound library is not yet available.
3.11.3 The Sound Functions
The sound library is not yet available.
3.12 The EXT L i br ar y
This library is designed to allow user s to construct their own exte nsi on library involving
code in C and assembly language. Its structure is si m i l ar to that of the SDL and GL
libraries.
It uses the sys(Sys
ext,...) functions to interface with C code defined in
sysc/extfn.c, and has two header files ext.h and ext.b providing t he BCPL in-
terface. Programs using the EXT library should start with the following statements.
GET "libhdr"
MANIFEST { g_extbase=nnn } // Only used if the default setting of 900 in
// libhdr is not suitable.
GET "ext.h"
GET "ext.b" // Insert the library source code