8 uint_t rates[] = { 8000, 16000, 22050, 44100, 96000, 192000};
10 uint_t samplerate, i = 0;
12 for ( samplerate = rates[i]; i < nrates ; i++ ) {
13 f = new_aubio_filter_a_weighting (samplerate);
16 f = new_aubio_filter (7);
17 aubio_filter_set_a_weighting (f, samplerate);
22 f = new_aubio_filter_a_weighting (4200);
24 //PRINT_MSG ("failed creating A-weighting filter with samplerate=4200Hz\n");
28 f = new_aubio_filter (2);
29 if (aubio_filter_set_a_weighting (f, samplerate) != 0) {
30 //PRINT_MSG ("failed setting filter to A-weighting\n");
35 f = new_aubio_filter (12);
36 if (aubio_filter_set_a_weighting (f, samplerate) != 0) {
37 //PRINT_MSG ("failed setting filter to A-weighting\n");