9 uint_t rates[] = { 8000, 16000, 22050, 44100, 96000, 192000};
11 uint_t samplerate, i = 0;
13 for ( samplerate = rates[i]; i < nrates ; i++ ) {
14 f = new_aubio_filter_a_weighting (samplerate);
17 f = new_aubio_filter (7);
18 aubio_filter_set_a_weighting (f, samplerate);
23 f = new_aubio_filter_a_weighting (4200);
25 //PRINT_MSG ("failed creating A-weighting filter with samplerate=4200Hz\n");
29 f = new_aubio_filter (2);
30 if (aubio_filter_set_a_weighting (f, samplerate) != 0) {
31 //PRINT_MSG ("failed setting filter to A-weighting\n");
36 f = new_aubio_filter (12);
37 if (aubio_filter_set_a_weighting (f, samplerate) != 0) {
38 //PRINT_MSG ("failed setting filter to A-weighting\n");