#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); float cutoff_frequency=2000; 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); } while (cutoff_frequency > 0.0) { AUDupdateSimpleFloats("pitch", 1, cutoff_frequency); printf("Please enter new cutoff frequency (0.0 to quit): ");fflush(stdout); scanf("%f", &cutoff_frequency); } EndSoundServer(); }