/*************************************************************************** * NAME: PLAYEXAM.C ** COPYRIGHT: ** "Copyright (c) 1992, by FORTE ** ** "This software is furnished under a license and may be used, ** copied, or disclosed only in accordance with the terms of such ** license and with the inclusion of the above copyright notice. ** This software or any other copies thereof may not be provided or ** otherwise made available to any other person. No title to and ** ownership of the software is hereby transfered." **************************************************************************** * CREATION DATE: 09/25/93 *--------------------------------------------------------------------------* * VERSION DATE NAME DESCRIPTION *> 1.0 05/01/93 Original ***************************************************************************/ #include #include #include #include #include #ifdef MSOFTC || WATCOMC #include #define close _dos_close #else #include #endif #define BUFFSIZE 4U*1024U char *databuf0; char *databuf1; #include "forte.h" #include "gf1proto.h" #include "extern.h" #include "ultraerr.h" void WaveHandler(voice) int voice; { } void usage() { printf("\nUsage: playexam -fnnnnn -vnnn filename\n"); exit(-2); } void main(argc,argv) int argc; char *argv[]; { char filename[80]; void *data_ptr; int fd; unsigned long frequency = 22050L; int volume=400; ULTRA_CFG config; int i; int voice; unsigned long dram_loc; strcpy(filename,""); for (i=1;i