[bluez-android] How can we change the audio sample rate dynamically
From: Prabhu Chawandi <hidden>
Date: 2015-11-05 11:40:14
From: Prabhu Chawandi <hidden>
Date: 2015-11-05 11:40:14
Hi All, I have situation where I need to reset the sample rate depending on the incoming settings. How can I do it ? I have tried below ways. I found changing a2dp_sbc_t sbc_presets[1] frequency from 44100 to 48000 in hal-audio-sbc.c, will change the device sampling rate, but only once. In order to achieve changing sampling rate dynamically, i used the below methods. Both did not work a. stream_out->common.set_sample_rate(&stream_out->common) b. stream_out->common.set_parameters(&stream_out->common","sampling_rate=48000"); Has anyone tried changing audio sample rate dynamically? If so, please share how it was done? Advanced Thanks, Prabhu Chawandi