#include #include #include "vssClient.h" #define BUFLEN 100 void usage(int argc, char *argv[]) { if (argc != 2) { fprintf(stderr, "Usage: %s audfile\n", *argv); exit(44); } } main(int argc, char *argv[]) { char audfile[BUFLEN]; usage(argc,argv); strcpy(audfile, argv[1]); if (!BeginSoundServer()) { printf("Error: couldn't find a running copy of VSS.\n"); exit(44); } if (AUDinit(audfile) < 0) { printf("Error: couldn't read aud file %s.\n", audfile); EndSoundServer(); exit(44); } printf("Press return to stop soundserver.\n"); getchar(); EndSoundServer(); }