ftp.nice.ch/pub/next/unix/communication/am.1.16.NIHS.bs.tar.gz#/am.1.16.NIHS.bs/src/zyxel2snd.c

This is zyxel2snd.c in view mode; [Download] [Up]

/*
		sc.c
		
		version :	1.02
		date	:	28.Nov 1993
		purpose	:	adpcm to soundfilter
		author	:	jolly ( the only one )
*/

#import <sys/types.h>
#import "precomp.h"

int main()
{
	struct	zyxel header;
	FILE *feil;
	
	feil=tmpfile();
	fread(&header,sizeof(struct zyxel),1,stdin);
	switch(isZyXEL(&header))
	{
		case ZYX_AD2:ad2(feil,stdin);lin96_to_mulaw(feil,stdout);break;
		case ZYX_AD3:ad3(feil,stdin);lin96_to_mulaw(feil,stdout);break;
		case ZYX_NOSNDHEADER:fprintf(stderr,"File is not a ZyXEL-voice file\n");return 0;
		default				:fprintf(stderr,"Voice format not supported\n");return 0;
	}
	return 0;
}

	
		

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.