- if (vi.rate != srate) {
- printf ("\n\nError : File '%s' has sample rate of %ld when it should be %d.\n\n", filename, vi.rate, srate);
- exit (1) ;
- }
- if (vi.channels != 1) {
- printf ("\n\nError : File '%s' has %d channels, but should be mono.\n\n", filename, vi.channels);
- exit (1) ;
- }