This is sndio.h in view mode; [Download] [Up]
#import <stdio.h> #import <stdlib.h> #import <strings.h> #import <sys/types.h> #import <sys/stat.h> #import <sound/sound.h> #import <carl/sndio.h> #define NO 0 #define YES 1 #define NOTSET 2 // input char for desired output format #define SND16BITSHORT 's' #define SND32BITFLOAT 'f' // size of SND header without info string #define HEADNOINFO 6 // a very large number to default endi to #define MAXFILESIZE 2000000000 #define BUFSIZE 4096 FILE *ifp, // input file pointer *ofp; // output file pointer char in_index, // ity ascii input index format out_index; // otty ascii output index format float samrate; // output sample rate for indexing ascii output int itty, // is input tty flag ascii_in, // is input ascii flag ascii_out; // is output ascii flag char *chanspec, // input/output channel specifications *chans; // channel output filter short sbuffer[BUFSIZE / sizeof(short)]; // short buffer for output stream short sinbuf[BUFSIZE]; // short input buffer float fbuffer[BUFSIZE / sizeof(float)]; // float buffer for output stream float finbuf[BUFSIZE]; // float input buffer int SNDReadHeaderFromStream(); void tobegi(); int check_error(); int usage(); int setchan(); // sets channel filters void stos(); // short to short functions void stoshf(); void stosp(); void stosa(); void ncstos(); void cstos(); void astos(); void stof(); // short to float functions void stofhf(); void stofp(); void stofa(); void ncstof(); void cstof(); void astof(); void ftof(); // float to float functions void ftofp(); void ftofa(); void ftofhf(); void ncftof(); void cftof(); void aftof(); int ftos(); // float to short functions int ftoshf(); int ftosp(); int ftosa(); int ncftos(); int cftos(); int aftos();
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.