[bluez-android] How can we change the audio sample rate dynamically

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux