This is test1.c in view mode; [Download] [Up]
#include <sys/types.h> #include <sys/stat.h> #include <local/sfheader.h> #include <stdio.h> #include <carl/sndio.h> #include "bsd.h" float fbsdi(); struct bsdesc *openbsd(); struct bsdesc *bsdptr; long sampnum; FILE *popen(); char *getsfname(); main() { float sample; int i; bsdptr = openbsd("./xxx.bsdfile"); printf("chans: %d\nsamps: %d\nname:%s\n",bsdptr->nc,bsdptr->fs,bsdptr->fullname); for(i=0;i<bsdptr->fs;i+=1024) printf("%f\n",fbsdi(bsdptr,i)); for(i=bsdptr->fs;i>=0;i-=1024) printf("%f\n",fbsdi(bsdptr,i)); }
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.