Code: Select all
rsp_filter_cfg_t rsp_file_cfg = DEFAULT_RESAMPLE_FILTER_CONFIG();
rsp_file_cfg.src_rate = SAMPLE_RATE;
rsp_file_cfg.src_ch = 2;
rsp_file_cfg.dest_rate = SAMPLE_RATE;
rsp_file_cfg.dest_ch = 1;
rsp_file_cfg.complexity = 0;
rsp_file_cfg.down_ch_idx = 1;
audio_element_handle_t resample = rsp_filter_init(&rsp_file_cfg);